-
Notifications
You must be signed in to change notification settings - Fork 9
Closed
Labels
Description
@ThierryO there are some problems with Rprofile.site (at 29bf515) in Windows, when checklist and a bunch of dependencies are still missing:
- The
checklistinstallation is done before setting a CRAN mirror. This triggers RStudio to show a dialogue to select one, which isn't ideal. - Next,
checklistinstallation fails:
Installing package into ‘C:/R/library’
(as ‘lib’ is unspecified)
--- Please select a CRAN mirror for use in this session ---
Warning message:
package ‘checklist’ 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-packagesIt can be remedied manually, while still in the same session:
> "checklist" %in% rownames(utils::installed.packages())
[1] FALSE
> getOption("repos")
CRAN
"https://cloud.r-project.org/"
INLA
"https://inla.r-inla-download.org/R/stable"
inbo
"https://inbo.r-universe.dev"
> utils::install.packages("checklist")
Installing package into ‘C:/R/library’
(as ‘lib’ is unspecified)
also installing the dependencies ‘httpcode’, ‘triebeard’, ‘lazyeval’, ‘systemfonts’, ‘textshaping’, ‘crul’, ‘pingr’, ‘urltools’, ‘codemeta’, ‘rex’, ‘cyclocomp’, ‘xmlparsedata’, ‘backports’, ‘downlit’, ‘ragg’, ‘fauxpas’, ‘data.table’, ‘codemetar’, ‘lintr’, ‘pkgdown’, ‘rorcid’
trying URL 'https://cloud.r-project.org/bin/windows/contrib/4.2/httpcode_0.3.0.zip'
Content type 'application/zip' length 35049 bytes (34 KB)
downloaded 34 KB
trying URL 'https://cloud.r-project.org/bin/windows/contrib/4.2/triebeard_0.3.0.zip'
Content type 'application/zip' length 488464 bytes (477 KB)
downloaded 477 KB
trying URL 'https://cloud.r-project.org/bin/windows/contrib/4.2/lazyeval_0.2.2.zip'
Content type 'application/zip' length 160756 bytes (156 KB)
downloaded 156 KB
trying URL 'https://cloud.r-project.org/bin/windows/contrib/4.2/systemfonts_1.0.4.zip'
Content type 'application/zip' length 1042662 bytes (1018 KB)
downloaded 1018 KB
trying URL 'https://cloud.r-project.org/bin/windows/contrib/4.2/textshaping_0.3.6.zip'
Content type 'application/zip' length 1021405 bytes (997 KB)
downloaded 997 KB
trying URL 'https://cloud.r-project.org/bin/windows/contrib/4.2/crul_1.2.0.zip'
Content type 'application/zip' length 650041 bytes (634 KB)
downloaded 634 KB
trying URL 'https://cloud.r-project.org/bin/windows/contrib/4.2/pingr_2.0.1.zip'
Content type 'application/zip' length 59149 bytes (57 KB)
downloaded 57 KB
trying URL 'https://cloud.r-project.org/bin/windows/contrib/4.2/urltools_1.7.3.zip'
Content type 'application/zip' length 621738 bytes (607 KB)
downloaded 607 KB
trying URL 'https://cloud.r-project.org/bin/windows/contrib/4.2/codemeta_0.1.1.zip'
Content type 'application/zip' length 168235 bytes (164 KB)
downloaded 164 KB
trying URL 'https://cloud.r-project.org/bin/windows/contrib/4.2/rex_1.2.1.zip'
Content type 'application/zip' length 125877 bytes (122 KB)
downloaded 122 KB
trying URL 'https://cloud.r-project.org/bin/windows/contrib/4.2/cyclocomp_1.1.0.zip'
Content type 'application/zip' length 33311 bytes (32 KB)
downloaded 32 KB
trying URL 'https://cloud.r-project.org/bin/windows/contrib/4.2/xmlparsedata_1.0.5.zip'
Content type 'application/zip' length 21586 bytes (21 KB)
downloaded 21 KB
trying URL 'https://cloud.r-project.org/bin/windows/contrib/4.2/backports_1.4.1.zip'
Content type 'application/zip' length 102215 bytes (99 KB)
downloaded 99 KB
trying URL 'https://cloud.r-project.org/bin/windows/contrib/4.2/downlit_0.4.0.zip'
Content type 'application/zip' length 109257 bytes (106 KB)
downloaded 106 KB
trying URL 'https://cloud.r-project.org/bin/windows/contrib/4.2/ragg_1.2.2.zip'
Content type 'application/zip' length 1297889 bytes (1.2 MB)
downloaded 1.2 MB
trying URL 'https://cloud.r-project.org/bin/windows/contrib/4.2/fauxpas_0.5.0.zip'
Content type 'application/zip' length 2756204 bytes (2.6 MB)
downloaded 2.6 MB
trying URL 'https://cloud.r-project.org/bin/windows/contrib/4.2/data.table_1.14.2.zip'
Content type 'application/zip' length 2240371 bytes (2.1 MB)
downloaded 2.1 MB
trying URL 'https://cloud.r-project.org/bin/windows/contrib/4.2/codemetar_0.3.4.zip'
Content type 'application/zip' length 619071 bytes (604 KB)
downloaded 604 KB
trying URL 'https://inbo.r-universe.dev/bin/windows/contrib/4.2/lintr_2.0.1.9000.zip'
Content type 'application/zip' length 655371 bytes (640 KB)
downloaded 640 KB
trying URL 'https://cloud.r-project.org/bin/windows/contrib/4.2/pkgdown_2.0.3.zip'
Content type 'application/zip' length 791254 bytes (772 KB)
downloaded 772 KB
trying URL 'https://cloud.r-project.org/bin/windows/contrib/4.2/rorcid_0.7.0.zip'
Content type 'application/zip' length 1317893 bytes (1.3 MB)
downloaded 1.3 MB
trying URL 'https://inbo.r-universe.dev/bin/windows/contrib/4.2/checklist_0.2.4.zip'
Content type 'application/zip' length 617363 bytes (602 KB)
downloaded 602 KB
package ‘httpcode’ successfully unpacked and MD5 sums checked
package ‘triebeard’ successfully unpacked and MD5 sums checked
package ‘lazyeval’ successfully unpacked and MD5 sums checked
package ‘systemfonts’ successfully unpacked and MD5 sums checked
package ‘textshaping’ successfully unpacked and MD5 sums checked
package ‘crul’ successfully unpacked and MD5 sums checked
package ‘pingr’ successfully unpacked and MD5 sums checked
package ‘urltools’ successfully unpacked and MD5 sums checked
package ‘codemeta’ successfully unpacked and MD5 sums checked
package ‘rex’ successfully unpacked and MD5 sums checked
package ‘cyclocomp’ successfully unpacked and MD5 sums checked
package ‘xmlparsedata’ successfully unpacked and MD5 sums checked
package ‘backports’ successfully unpacked and MD5 sums checked
package ‘downlit’ successfully unpacked and MD5 sums checked
package ‘ragg’ successfully unpacked and MD5 sums checked
package ‘fauxpas’ successfully unpacked and MD5 sums checked
package ‘data.table’ successfully unpacked and MD5 sums checked
package ‘codemetar’ successfully unpacked and MD5 sums checked
package ‘lintr’ successfully unpacked and MD5 sums checked
package ‘pkgdown’ successfully unpacked and MD5 sums checked
package ‘rorcid’ successfully unpacked and MD5 sums checked
package ‘checklist’ successfully unpacked and MD5 sums checked
The downloaded binary packages are in
C:\Users\floris_vanderhaeghe\AppData\Local\Temp\RtmpMtaUUX\downloaded_packages
> sessioninfo::session_info()
- Session info -------------------------------------------------------------------
setting value
version R version 4.2.0 (2022-04-22 ucrt)
os Windows 10 x64 (build 19043)
system x86_64, mingw32
ui RStudio
language (EN)
collate Dutch_Belgium.1252
ctype Dutch_Belgium.1252
tz Europe/Paris
date 2022-05-17
rstudio 2022.02.2+485 Prairie Trillium (desktop)
pandoc NA
- Packages -----------------------------------------------------------------------
package * version date (UTC) lib source
cli 3.3.0 2022-04-25 [1] CRAN (R 4.2.0)
fortunes 1.5-4 2016-12-29 [1] CRAN (R 4.2.0)
sessioninfo 1.2.2 2021-12-06 [1] CRAN (R 4.2.0)
[1] C:/R/library
[2] C:/R/R-4.2.0/library
----------------------------------------------------------------------------------Some other observations:
- Moving the line:
| if (!"checklist" %in% rownames(utils::installed.packages())) { | |
| utils::install.packages("checklist") | |
| } |
below the options() statement makes RStudio not able to start.
- Everything does work (including the problem further down with
remotes::install_github) ifchecklistis the only missing package (i.e. when the above dependencies have been installed). - Everything does work (including the problem further down with
remotes::install_github) if the above three lines are commented out. - When not resolved,
remotes::install_github()doesn't seem to get a package installed (mentioned by @DriesAdriaens for"inbo/n2khab@59a16bc"), and reproduced below on my machine:
R version 4.2.0 (2022-04-22 ucrt) -- "Vigorous Calisthenics"
Copyright (C) 2022 The R Foundation for Statistical Computing
Platform: x86_64-w64-mingw32/x64 (64-bit)
R is free software and comes with ABSOLUTELY NO WARRANTY.
You are welcome to redistribute it under certain conditions.
Type 'license()' or 'licence()' for distribution details.
R is a collaborative project with many contributors.
Type 'contributors()' for more information and
'citation()' on how to cite R or R packages in publications.
Type 'demo()' for some demos, 'help()' for on-line help, or
'help.start()' for an HTML browser interface to help.
Type 'q()' to quit R.
Installing package into ‘C:/R/library’
(as ‘lib’ is unspecified)
--- Please select a CRAN mirror for use in this session ---
Warning message:
package ‘checklist’ 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
If you want to do an integer divide, you should only use integers to divide
with.
-- Thierry Onkelinx ((not entirely correctly) in an answer to "understanding
integer divide (%/%)")
R-help (January 2007)
> remotes::install_github("inbo/n2khab@59a16bc")
Downloading GitHub repo inbo/n2khab@59a16bc
WARNING: Rtools is required to build R packages, but no version of Rtools compatible with R 4.2.0 was found. (Only the following incompatible version(s) of Rtools were found: 4.0)
Please download and install Rtools 4.2 from https://cran.r-project.org/bin/windows/Rtools/ or https://www.r-project.org/nosvn/winutf8/ucrt3/.
v checking for file 'C:\Users\floris_vanderhaeghe\AppData\Local\Temp\RtmpywX0QD\remotes321046343212\inbo-n2khab-59a16bc/DESCRIPTION' ...
- preparing 'n2khab':
v checking DESCRIPTION meta-information ...
- checking for LF line-endings in source and make files and shell scripts
- checking for empty or unneeded directories
Removed empty directory 'n2khab/pkgdown'
Omitted 'LazyData' from DESCRIPTION
- building 'n2khab_0.6.0.900.tar.gz'
Installing package into ‘C:/R/library’
(as ‘lib’ is unspecified)
Installing package into 'C:/R/library'
(as 'lib' is unspecified)
Error in contrib.url(repos, "source") :
trying to use CRAN without setting a mirror
Calls: <Anonymous> -> contrib.url
Execution halted
Warning message:
In i.p(...) :
installation of package ‘C:/Users/FLORIS~1/AppData/Local/Temp/RtmpywX0QD/file32102e8d555c/n2khab_0.6.0.900.tar.gz’ had non-zero exit status