Skip to content

checking for already installed does not respect lib argument #121

@lshep

Description

@lshep

So I'm testing locally and I have an environment variable set up to specify a different installation path:

> .libPaths()
[1] "/home/shepherd/R-Libraries/4.2-Bioc3.15"      
[2] "/home/shepherd/R-Installs/bin/R-devel/library"

I need biocViews to be installed directly in the second location which it does not do because I assume its finding it in the first despite me explicitly asking for installation

> install("biocViews", lib=.libPaths()[2])
Bioconductor version 3.15 (BiocManager 1.30.16), R Under development (unstable)
  (2021-10-27 r81106)
Warning message:
package(s) not installed when version(s) same as current; use `force = TRUE` to
  re-install: 'biocViews' 

> system("ls /home/shepherd/R-Installs/bin/R-devel/library")
base   cluster	  datasets  grDevices	lattice  methods  nnet	    spatial  stats4    tools
boot   codetools  foreign   grid	MASS	 mgcv	  parallel  splines  survival  translations
class  compiler   graphics  KernSmooth	Matrix	 nlme	  rpart     stats    tcltk     utils

Granted I can do a force=TRUE to get around this but it seems like the checking should be limited if lib is given

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions