Skip to content

[Bioc-devel] Error: DLL 'rgl' not found: maybe not installed for this architecture?

2 messages · Venu Thatikonda, Hervé Pagès

#
Hi,

During one of my R packages bioc review, I see the following 2 errors,

one:

Error in library.dynam(dynlib, pkg, lib) :
  DLL 'rgl' not found: maybe not installed for this architecture?
Error: .onLoad failed in loadNamespace() for 'rgl', details:
  call: NULL
  error: 	Loading rgl's DLL failed.
Execution halted
ERROR: lazy loading failed for package 'ALPS'
* removing 'C:/Users/pkgbuild/packagebuilder/workers/jobs/1215/2a61338/ALPS.buildbin-libdir/ALPS'

I'm not using any functions from 'rgl', not sure why it is a required
dependency. Or is there any key detail am I missing? R CMD build, check
BiocCheck are very clean on my system.

Two:

    * ERROR: System Files found that should not be git tracked:
        ALPS.Rproj


Based on this discussion (
https://community.rstudio.com/t/should-rproj-files-be-added-to-gitignore/1269),
it is in fact a bit useful not adding PACKAGE.Rproj to .gitignore. Do all
bioc packages require adding *Rproj to gitignore?

Here is the report, if it's helpful.

http://bioconductor.org/spb_reports/ALPS_buildreport_20190823145032.html

Thank you & have a ncie day!
5 days later
#
Hi,
On 8/23/19 14:38, Venu Thatikonda wrote:
For some reasons we had a broken installation of rgl on the Windows 
builders. This should be fixed now. Sorry for that.
You're not using any function from rgl but I suspect you depend on some 
package that depends on rgl. So your package depends **indirectly** on 
rgl. This means that when you load your package, rgl gets loaded too 
(see sessionInfo() after loading your package).
That check seems unjustified to me. Also it seems that adding ALPS.Rproj 
to your .gitignore won't make this error go away. I would suggest that 
you open an issue for it at:

   https://github.com/Bioconductor/BiocCheck/issues

In the meantime hopefully you can convince the reviewer of your package 
to ignore this error.
FWIW I see more than 200 BioC software packages with a PACKAGE.Rproj 
file in their git repo. AFAIK this file has never caused any problem. 
It's automatically ignored by 'R CMD build' and 'R CMD INSTALL' so 
everything is fine.

Best,
H.