Installing Tidymodels

Dear All,

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’
  • removing ‘/home/bahman/R/x86_64-pc-linux-gnu-library/3.6/tidymodels’

Here is my SessionInfo()
R version 3.6.2 (2019-12-12)
Platform: x86_64-pc-linux-gnu (64-bit)
Running under: elementary OS 5.1 Hera

Matrix products: default
BLAS: /usr/lib/x86_64-linux-gnu/blas/libblas.so.3.7.1
LAPACK: /usr/lib/x86_64-linux-gnu/lapack/liblapack.so.3.7.1

locale:
[1] LC_CTYPE=en_US.UTF-8 LC_NUMERIC=C
[3] LC_TIME=en_US.UTF-8 LC_COLLATE=en_US.UTF-8
[5] LC_MONETARY=en_US.UTF-8 LC_MESSAGES=en_US.UTF-8
[7] LC_PAPER=en_US.UTF-8 LC_NAME=C
[9] LC_ADDRESS=C LC_TELEPHONE=C
[11] LC_MEASUREMENT=en_US.UTF-8 LC_IDENTIFICATION=C

attached base packages:
[1] stats graphics grDevices utils datasets methods base

loaded via a namespace (and not attached):
[1] compiler_3.6.2

Thanks.

Have you tried following the error message instructions?

Have you make sure you have write permissions on that folder?

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’
  • removing ‘/home/bahman/R/x86_64-pc-linux-gnu-library/3.6/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.

Thanks Andresrcs. I am going to check it out.

This topic was automatically closed 21 days after the last reply. New replies are no longer allowed.