R says include dir is empty, but it's not.
1
0
Entering edit mode
ariel ▴ 20
@ariel-16886
Last seen 3.0 years ago
United States

I don't know if this is an R issue, RStudio issue, or Bioconductor issue.

When I try to install some packages, in this specific case DECIPHER, I get:

> biocLite('DECIPHER', suppressUpdates=T)
trying URL 'https://bioconductor.org/packages/3.6/bioc/src/contrib/DECIPHER_2.6.0.tar.gz'
Content type 'application/x-gzip' length 12633118 bytes (12.0 MB)
==================================================
downloaded 12.0 MB

* installing *source* package ‘DECIPHER’ ...
** libs
Warning: R include directory is empty -- perhaps need to install R-devel.rpm or similar
/home/balter/conda/lib/R/etc/Makeconf:10: /envs/dada2/lib/R/share/make/vars.mk: No such file or directory
make: /envs/dada2/lib/R/share/make/shlib.mk: No such file or directory
make: *** No rule to make target '/envs/dada2/lib/R/share/make/shlib.mk'.  Stop.
ERROR: compilation failed for package ‘DECIPHER’
* removing ‘/home/balter/conda/envs/dada2/lib/R/library/DECIPHER’

The downloaded source packages are in
    ‘/tmp/RtmpwH2lcr/downloaded_packages’

> Sys.getenv('R_INCLUDE_DIR')
[1] "/home/balter/conda/envs/dada2/lib/R/include/"
> list.files(Sys.getenv('R_INCLUDE_DIR'))
 [1] "R_ext"        "R.h"          "Rconfig.h"    "Rdefines.h"   "Rembedded.h"  "Rinterface.h" "Rinternals.h"
 [8] "Rmath.h"      "Rversion.h"   "S.h" 
R bioconductor biocinstaller package installation • 2.0k views
ADD COMMENT
0
Entering edit mode
@martin-morgan-1513
Last seen 4 months ago
United States

Remember that you are using a conda installation, so that the correct way to install Bioconductor packages is to use conda install, NOT biocLite. This is a conda issue, and should be reported there (readers of this forum are not in a position to fix it).

ADD COMMENT

Login before adding your answer.

Traffic: 650 users visited in the last hour
Help About
FAQ
Access RSS
API
Stats

Use of this site constitutes acceptance of our User Agreement and Privacy Policy.

Powered by the version 2.3.6