Skip to content

Installation on Windows fails with ` undefined exports: life.gbol.PrecursorRNA`

I'm trying to build RGBOLApi (revision 80335c40) on Windows and am getting

Error: package or namespace load failed for 'RGBOLApi' in namespaceExport(ns, exports):
 undefined exports: life.gbol.PrecursorRNA

plus a bunch of lines like

Found more than one class "DomainInner" in cache; using the first, from namespace 'RGBOLApi'
Also defined by '.GlobalEnv'

This happens whether I Build > Build and Reload in RStudio, or build from the Windows command line with Rcmd.exe INSTALL --no-multiarch --with-keep.source RGBOLApi

Details

I installed gradle 3.4.1 using chocolatey: choco install gradle. I could then install GBOLapi using the git bash that came with git 2.11.0.windows.1.

git bash
cd gbol/GBOLapi
gradle install

I did this instead of RGBOLApi/install.sh because that wants to clone GBOLapi, which I already had installed. However, I also tried cloning RGBOLApi to a temp directory and letting it have its way. That failed in the same manner.

Output from failed build

Microsoft Windows [Version 10.0.10586]
(c) 2015 Microsoft Corporation. All rights reserved.

C:\>where R
C:\Program Files\R\R-3.4.0\bin\x64\R.exe

C:\>cd git\gbol\
C:\git\gbol>Rcmd.exe INSTALL --no-multiarch --with-keep.source RGBOLApi
* installing to library 'c:/Users/jonvi/R/win-library/3.4'
* installing *source* package 'RGBOLApi' ...
** R
** inst
** preparing package for lazy loading
Found more than one class "DomainInner" in cache; using the first, from namespace 'RGBOLApi'
Also defined by '.GlobalEnv'
Found more than one class "Domain" in cache; using the first, from namespace 'RGBOLApi'
Also defined by '.GlobalEnv'
[...]
** help
*** installing help indices
** building package indices
** testing if installed package can be loaded
Warning: namespace 'RGBOLApi' is not available and has been replaced
by .GlobalEnv when processing object 'location'
Error: package or namespace load failed for 'RGBOLApi' in namespaceExport(ns, exports):
 undefined exports: life.gbol.PrecursorRNA
Error: loading failed
Execution halted
ERROR: loading failed
* removing 'c:/Users/jonvi/R/win-library/3.4/RGBOLApi'