简体   繁体   中英

No library trees found in 'lib.loc' when installing custom package

I am making a package for functions that I developed for a specific application at work. I was using a guide to make the package using devtools and roxygen2. see guide here https://hilaryparker.com/2014/04/29/writing-an-r-package-from-scratch/

When finished following the steps I used the install() feature and I get this error.

* installing *source* package 'subOpti' ...
** R
** preparing package for lazy loading
** help
*** installing help indices
** building package indices
** testing if installed package can be loaded
*** arch - i386
Warning in library(pkg_name, lib.loc = lib, character.only = TRUE, 
logical.return = TRUE) :
  no library trees found in 'lib.loc'
Error: loading failed
Execution halted
*** arch - x64
Warning in library(pkg_name, lib.loc = lib, character.only = TRUE, 
logical.return = TRUE) :
  no library trees found in 'lib.loc'
Error: loading failed
Execution halted
ERROR: loading failed for 'i386', 'x64'
* removing '\\server/users/lgallaway/My Documents/R/win-
library/3.3/subOpti'

My lib location is on a server and I choose my package location in a different section of a fileserver. I thought that maybe the server locations were an issue, so I moved the package locally but that just generated a separate error.

Well I took the files home and followed the same process that was highlighted in the guide above and it worked no issue. I am assuming the issue is that I don't have write permissions to the network lib location.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM