Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Issue installing devtools on R and dependency on usethis and fs

Tags:

r

I am trying to get the devtools to work on RStudio. I installed the package using:

install.packages("devtools") 

when I run

 library(devtools) 

I get the error:

Loading required package: usethis
Error: package or namespace load failed for ‘usethis’ in loadNamespace(i, c(lib.loc, .libPaths()), versionCheck = vI[[i]]):
 there is no package called ‘fs’
Error: package ‘usethis’ could not be loaded

so I try to install fs using install.packages('fs') yet when I run library(fs) I get error of Error in library(fs) : there is no package called ‘fs’ furthermore I installed usethisyet I guess that depends on fs because when I run it I get:

Error: package or namespace load failed for ‘usethis’ in loadNamespace(i, c(lib.loc, .libPaths()), versionCheck = vI[[i]]):
 there is no package called ‘fs’

I wonder how to resolve this?

like image 494
Wiliam Avatar asked Sep 07 '25 21:09

Wiliam


1 Answers

I think you need the Rcpp package dependency. Install it with:

install.packages("Rcpp", dependencies = TRUE)
like image 73
DSH Avatar answered Sep 10 '25 06:09

DSH