Ramiro Barrantes
2019-Oct-10 21:13 UTC
[Rd] How to refer to my package from another package DESCRIPTION
Hello, I am developing some packages. Package1 requires Package2, both of which I developed: Right now Package2 is installed properly here: /myHome/libraries/Package2 Package1 needs Package2. Package1 refers to Package2 both in the Roxygen @import field for one of the functions, and also in the Imports section in the DESCRIPTION However, when I do ?R CMD check Package1? I get: * checking loading without being on the library search path ... WARNING Error: package or namespace load failed for ?Package1? in loadNamespace(i, c(lib.loc, .libPaths()), versionCheck = vI[[i]]): there is no package called ?Package2? It can?t find it. However, it does not seem like the correct thing is to have R_LIBS_USER=/myHome/libraries How should I go about this? Thanks in advance! [[alternative HTML version deleted]]
Duncan Murdoch
2019-Oct-10 21:41 UTC
[Rd] How to refer to my package from another package DESCRIPTION
On 10/10/2019 5:13 p.m., Ramiro Barrantes wrote:> Hello, I am developing some packages. Package1 requires Package2, both of which I developed: > > Right now Package2 is installed properly here: > > /myHome/libraries/Package2 > > Package1 needs Package2. Package1 refers to Package2 both in the Roxygen @import field for one of the functions, and also in the Imports section in the DESCRIPTION > > However, when I do ?R CMD check Package1? I get: > > * checking loading without being on the library search path ... WARNING > Error: package or namespace load failed for ?Package1? in loadNamespace(i, c(lib.loc, .libPaths()), versionCheck = vI[[i]]): > there is no package called ?Package2? > > It can?t find it. However, it does not seem like the correct thing is to have R_LIBS_USER=/myHome/librariesWhy not? Duncan Murdoch> > How should I go about this? > > Thanks in advance! > > > > [[alternative HTML version deleted]] > > ______________________________________________ > R-devel at r-project.org mailing list > https://stat.ethz.ch/mailman/listinfo/r-devel >
Ramiro Barrantes
2019-Oct-10 22:06 UTC
[Rd] How to refer to my package from another package DESCRIPTION
Because it does not work. It says: """ * checking loading without being on the library search path ... WARNING Error: package or namespace load failed for ?Package1? in loadNamespace(i, c(lib.loc, .libPaths()), versionCheck = vI[[i]]): there is no package called ?Package2? Execution halted It looks like this package has a loading problem when not on .libPaths: see the messages for details. """ Any ideas? ?On 10/10/19, 5:42 PM, "Duncan Murdoch" <murdoch.duncan at gmail.com> wrote: On 10/10/2019 5:13 p.m., Ramiro Barrantes wrote: > Hello, I am developing some packages. Package1 requires Package2, both of which I developed: > > Right now Package2 is installed properly here: > > /myHome/libraries/Package2 > > Package1 needs Package2. Package1 refers to Package2 both in the Roxygen @import field for one of the functions, and also in the Imports section in the DESCRIPTION > > However, when I do ?R CMD check Package1? I get: > > * checking loading without being on the library search path ... WARNING > Error: package or namespace load failed for ?Package1? in loadNamespace(i, c(lib.loc, .libPaths()), versionCheck = vI[[i]]): > there is no package called ?Package2? > > It can?t find it. However, it does not seem like the correct thing is to have R_LIBS_USER=/myHome/libraries Why not? Duncan Murdoch > > How should I go about this? > > Thanks in advance! > > > > [[alternative HTML version deleted]] > > ______________________________________________ > R-devel at r-project.org mailing list > https://stat.ethz.ch/mailman/listinfo/r-devel >
Seemingly Similar Threads
- How to refer to my package from another package DESCRIPTION
- Problem understanding behaviour of versionCheck for loadNamespace (and when versions for Imports packages are checked)
- Problem understanding behaviour of versionCheck for loadNamespace (and when versions for Imports packages are checked)
- Problem understanding behaviour of versionCheck for loadNamespace (and when versions for Imports packages are checked)
- Problem understanding behaviour of versionCheck for loadNamespace (and when versions for Imports packages are checked)