Which version of R is required? With R 4.0.0 I have the following problem:
sudo ./scripts/install-dependencies.sh
Error: package or namespace load failed for ‘optparse’:
package ‘optparse’ was installed before R 4.0.0: please re-install it
Installing package into ‘/usr/local/lib/R/site-library’
(as ‘lib’ is unspecified)
trying URL 'http://cran.rstudio.com/src/contrib/optparse_1.7.3.tar.gz'
Content type 'application/x-gzip' length 41707 bytes (40 KB)
==================================================
downloaded 40 KB
* installing *source* package ‘optparse’ ...
** package ‘optparse’ successfully unpacked and MD5 sums checked
** using staged installation
** R
** exec
** inst
** byte-compile and prepare package for lazy loading
Error: package ‘getopt’ was installed before R 4.0.0: please re-install it
Execution halted
ERROR: lazy loading failed for package ‘optparse’
* removing ‘/usr/local/lib/R/site-library/optparse’
* restoring previous ‘/usr/local/lib/R/site-library/optparse’
The downloaded source packages are in
‘/tmp/RtmpBe6TQI/downloaded_packages’
Loading required package: optparse
Error: package or namespace load failed for ‘optparse’:
package ‘optparse’ was installed before R 4.0.0: please re-install it
Error: Failed to install package:optparse
In addition: Warning message:
In install.packages(package, repos = "http://cran.rstudio.com/") :
installation of package ‘optparse’ had non-zero exit status
Execution halted--
You received this message because you are subscribed to a topic in the Google Groups "STITCH imputation" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/stitch-imputation/QdyyHfehpMY/unsubscribe.
To unsubscribe from this group and all its topics, send an email to stitch-imputat...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/stitch-imputation/bd8f68f1-4241-4d6b-99c2-497a427822b0n%40googlegroups.com.
R version 4.2.1 (2022-06-23) -- "Funny-Looking Kid"
Copyright (C) 2022 The R Foundation for Statistical Computing
Platform: x86_64-pc-linux-gnu (64-bit)
> install.packages("devtools", repos = "http://R-Forge.R-project.org")
Installing package into ‘/usr/local/lib/R/site-library’
(as ‘lib’ is unspecified)
Warning message:
package ‘devtools’ is not available for this version of R
A version of this package for your version of R might be available elsewhere,
see the ideas at
https://cran.r-project.org/doc/manuals/r-patched/R-admin.html#Installing-packages
> av <- available.packages(filters=list())
> av[av[, "Package"] == devtools, ]
Error: object 'devtools' not found
> q()