Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- checkfordir <- function(path){
- return(isTRUE(file.info(path)$isdir));
- }
- #because .libPaths() only appends paths, doesn't replace anything.
- setLibPaths <- function(newlibs){
- newlibs <- newlibs[sapply(newlibs, checkfordir)]
- assign(".lib.loc", newlibs, envir=environment(.libPaths));
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement