From dstr7320 at uni.sydney.edu.au  Thu Feb 18 08:00:05 2016
From: dstr7320 at uni.sydney.edu.au (Dario Strbenac)
Date: Thu, 18 Feb 2016 07:00:05 +0000
Subject: [Rd] R Package Installation Ignores libPaths Setting
Message-ID: <SN1PR0101MB14390FF9CD858614E238134BCDAE0@SN1PR0101MB1439.prod.exchangelabs.com>

Good day,

If the library path is changed with .libPaths, the command

install.packages("/nb/dario/Biostrings_2.39.9.tar.gz", repos=NULL)

fails with

** testing if installed package can be loaded
Error : package ?S4Vectors? required by ?Biostrings? could not be found

However,

running library(S4Vectors) followed by sessionInfo() after the error shows that the package can indeed be found by R

R version 3.2.3 Patched (2016-02-14 r70170)
Platform: x86_64-pc-linux-gnu (64-bit)
Running under: Debian GNU/Linux 8 (jessie)
    ...        ...
other attached packages:
[1] S4Vectors_0.9.34    BiocGenerics_0.17.3

The new library path is being ignored when the package is attempted to be loaded at the end of the installation process. How can the installation be successful ?

--------------------------------------
Dario Strbenac
PhD Student
University of Sydney
Camperdown NSW 2050
Australia


[Rd] R Package Installation Ignores libPaths Setting
Dario Strbenac