Cannot install on Ubuntu
Nobody has claimed this yet.
- Dominant language
- R
- Stars
- 401
- Forks
- 136
- PR merge metrics
- No merged PRs in 30d
Description
Hi guys,
I have successfully installed rstan, but I cannot manage to install rstanarm and I do not understand why.
I have also tried to install first bayesplot but I always get the same error you can see below.
install.packages("rstanarm")
Installing package into ‘/home/ahmed/R/x86_64-pc-linux-gnu-library/4.2’
(as ‘lib’ is unspecified)
also installing the dependencies ‘bayesplot’, ‘shinystan’
trying URL 'https://cloud.r-project.org/src/contrib/bayesplot_1.10.0.tar.gz'
Content type 'application/x-gzip' length 4993447 bytes (4.8 MB)
==================================================
downloaded 4.8 MB
trying URL 'https://cloud.r-project.org/src/contrib/shinystan_2.6.0.tar.gz'
Content type 'application/x-gzip' length 2399890 bytes (2.3 MB)
==================================================
downloaded 2.3 MB
trying URL 'https://cloud.r-project.org/src/contrib/rstanarm_2.21.3.tar.gz'
Content type 'application/x-gzip' length 3767563 bytes (3.6 MB)
==================================================
downloaded 3.6 MB
* installing *source* package ‘bayesplot’ ...
** package ‘bayesplot’ successfully unpacked and MD5 sums checked
** using staged installation
** R
** inst
** byte-compile and prepare package for lazy loading
Error in element_line(linewidth = 0.3) :
unused argument (linewidth = 0.3)
Error: unable to load R code in package ‘bayesplot’
Execution halted
ERROR: lazy loading failed for package ‘bayesplot’
* removing ‘/home/ahmed/R/x86_64-pc-linux-gnu-library/4.2/bayesplot’
Warning in install.packages :
installation of package ‘bayesplot’ had non-zero exit status
ERROR: dependency ‘bayesplot’ is not available for package ‘shinystan’
* removing ‘/home/ahmed/R/x86_64-pc-linux-gnu-library/4.2/shinystan’
Warning in install.packages :
installation of package ‘shinystan’ had non-zero exit status
ERROR: dependencies ‘bayesplot’, ‘shinystan’ are not available for package ‘rstanarm’
* removing ‘/home/ahmed/R/x86_64-pc-linux-gnu-library/4.2/rstanarm’
Warning in install.packages :
installation of package ‘rstanarm’ had non-zero exit status
The downloaded source packages are in
‘/tmp/RtmpntGw1e/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") failure on Ubuntu with R 4.2, focusing on the bayesplot error for element_line(linewidth = 0.3). Since no files or tests are named, trace the bayesplot, shinystan, and rstanarm dependency installation and confirm that rstanarm installs successfully without the reported lazy-loading failure.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- r
- Domain
- data
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100