Wes
Wes

Reputation: 23

Error: package or namespace load failed for ‘rsample’

I'm trying to load rsample package in R but i get this error:

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

I can't not find a solution to this anywhere.

Upvotes: 1

Views: 2359

Answers (2)

Wes
Wes

Reputation: 23

try install.packages("sfsmisc")

Upvotes: 1

dinman
dinman

Reputation: 55

You can download the source file from here: https://cran.r-project.org/web/packages/rsample/index.html

I also could not get it to install by simply using install.packages ("rsample").

Reading the reference manual, it imports dplyr, purrr, tibble, rlang, methods, and recipes

Once I installed these, I was able to get the library to load from the local rsample_0.0.2.tar.gz file using the following line.

  install.packages ("C:/Users/johndoe/Desktop/rsample_0.0.2.tar.gz", repos = NULL, type="source")

Upvotes: 1

Related Questions