ERROR: failed to lock directory when installing rstanarm
Open
Nobody has claimed this yet.
- Dominant language
- R
- Stars
- 401
- Forks
- 136
- PR merge metrics
- No merged PRs in 30d
Description
What is happening with rstanarm when I try to install/update?
> install.packages("tidyposterior")
Installing package into ‘/Users/kamaulindhardt_1/Library/R/3.6/library’
(as ‘lib’ is unspecified)
also installing the dependency ‘rstanarm’
There are binary versions available but
the source versions are later:
binary source needs_compilation
rstanarm 2.19.2 2.21.1 TRUE
tidyposterior 0.0.3 0.1.0 FALSE
Do you want to install from sources the package which needs compilation? (Yes/no/cancel) cancel
Error in install.packages : Cancelled by user
> install.packages("rstanarm")
Installing package into ‘/Users/kamaulindhardt_1/Library/R/3.6/library’
(as ‘lib’ is unspecified)
There is a binary version available but the source version is later:
binary source needs_compilation
rstanarm 2.19.2 2.21.1 TRUE
Do you want to install from sources the package which needs compilation? (Yes/no/cancel) no
trying URL 'https://cran.rstudio.com/bin/macosx/el-capitan/contrib/3.6/rstanarm_2.19.2.tgz'
Content type 'application/x-gzip' length 33305501 bytes (31.8 MB)
==================================================
downloaded 31.8 MB
The downloaded binary packages are in
/var/folders/6p/c87kn7652k3bb9lw5j3c2rn00000gp/T//RtmpFmhYGc/downloaded_packages
> library(rstanarm)
Loading required package: Rcpp
rstanarm (Version 2.19.2, packaged: 2019-10-01 20:20:33 UTC)
- Do not expect the default priors to remain the same in future rstanarm versions.
Thus, R scripts should specify priors explicitly, even if they are just the defaults.
- For execution on a local, multicore CPU with excess RAM we recommend calling
options(mc.cores = parallel::detectCores())
- bayesplot theme set to bayesplot::theme_default()
* Does _not_ affect other ggplot2 plots
* See ?bayesplot_theme_set for details on theme setting
Warning message:
package ‘Rcpp’ was built under R version 3.6.2
Restarting R session...
> install.packages("rstanarm")
Installing package into ‘/Users/kamaulindhardt_1/Library/R/3.6/library’
(as ‘lib’ is unspecified)
What is happening with `rstanarm` when I try to instal/update?
There is a binary version available but the source version is later:
binary source needs_compilation
rstanarm 2.19.2 2.21.1 TRUE
Do you want to install from sources the package which needs compilation? (Yes/no/cancel) yes
installing the source package ‘rstanarm’
trying URL 'https://cran.rstudio.com/src/contrib/rstanarm_2.21.1.tar.gz'
Content type 'application/x-gzip' length 3548723 bytes (3.4 MB)
==================================================
downloaded 3.4 MB
ERROR: failed to lock directory ‘/Users/kamaulindhardt_1/Library/R/3.6/library’ for modifying
Try removing ‘/Users/kamaulindhardt_1/Library/R/3.6/library/00LOCK-rstanarm’
Warning in install.packages :
installation of package ‘rstanarm’ had non-zero exit status
The downloaded source packages are in
‘/private/var/folders/6p/c87kn7652k3bb9lw5j3c2rn00000gp/T/Rtmp8Bbo3q/downloaded_packages’
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reproducing the reported install.packages("rstanarm") flow on macOS, including the source installation and the 00LOCK-rstanarm path shown in the report. Read the installation behavior around the R library directory and confirm what condition causes the lock error; done means the reported installation completes without that error or the issue is clearly identified as environment-specific.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- macos, r
- Domain
- build-system, tooling
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 20/100