Is there any trick for installing TidyModels on Ubuntu 18.04? I am facing some errors after trying to install the meta package.
Here is the error:
ERROR: failed to lock directory ‘/home/bahman/R/x86_64-pc-linux-gnu-library/3.6’ for modifying
Try removing ‘/home/bahman/R/x86_64-pc-linux-gnu-library/3.6/00LOCK-rstan’
ERROR: dependency ‘rstan’ is not available for package ‘shinystan’
removing ‘/home/bahman/R/x86_64-pc-linux-gnu-library/3.6/shinystan’
ERROR: dependencies ‘rstan’, ‘shinystan’ are not available for package ‘rstanarm’
removing ‘/home/bahman/R/x86_64-pc-linux-gnu-library/3.6/rstanarm’
ERROR: dependency ‘rstanarm’ is not available for package ‘tidyposterior’
removing ‘/home/bahman/R/x86_64-pc-linux-gnu-library/3.6/tidyposterior’
ERROR: dependency ‘tidyposterior’ is not available for package ‘tidymodels’
Yep. But nothing has changed. Again and ended up following this error:
Error in loadNamespace(j <- i[[1L]], c(lib.loc, .libPaths()), versionCheck = vI[[j]]) :
object 'vI' not found
Calls: ... namespaceImportFrom -> asNamespace -> loadNamespace
Execution halted
ERROR: lazy loading failed for package ‘tidyposterior’
removing ‘/home/bahman/R/x86_64-pc-linux-gnu-library/3.6/tidyposterior’
ERROR: dependency ‘tidyposterior’ is not available for package ‘tidymodels’
The downloaded source packages are in
‘/tmp/RtmpZt3nxD/downloaded_packages’
Warning messages:
1: In install.packages("tidymodels") :
installation of package ‘rstanarm’ had non-zero exit status
2: In install.packages("tidymodels") :
installation of package ‘tidyposterior’ had non-zero exit status
3: In install.packages("tidymodels") :
installation of package ‘tidymodels’ had non-zero exit status
Well, something has changed since this is a different error message.
This error is related to your base R installation, is not very informative but you could try updating your packages with
update.packages(checkBuilt=TRUE)
Then restart your R session and try to install again. If that doesn't work I would suggest completely removing R (including libraries) and reinstalling again.