Closed florisvdh closed 2 years ago
fixed in #312
I've tried that too, but it generates the above described won't-start behaviour of RStudio as long as checklist
dependencies aren't installed first. In my case. Weird. Will try once again with your update after restarting Windows.
Note that RStudio needs time to install the package and it dependencies in the background.
Note that RStudio needs time to install the package and it dependencies in the background.
Yes, but not forever. It seems, in practice, that idle instances of RStudio are present as a background process, doing nothing. See conclusion at the end.
Problem confirmed using #312 (Rprofile.site at 31a7ef0
):
Rprofile.site
if dependencies ‘httpcode’, ‘triebeard’, ‘lazyeval’, ‘systemfonts’, ‘textshaping’, ‘crul’, ‘pingr’, ‘urltools’, ‘codemeta’, ‘rex’, ‘cyclocomp’, ‘xmlparsedata’, ‘backports’, ‘downlit’, ‘ragg’, ‘fauxpas’, ‘data.table’, ‘codemetar’, ‘lintr’, ‘pkgdown’, ‘rorcid’
are missing.if()
statement for checklist
(Rprofile.site)install.packages("checklist")
. Gives no problem, the above deps are installed and then checklist
.if()
statement in Rprofile.site and restart RStudio. This shows no problems anymore.Now, a further experiment with the repaired state:
remove.packages("checklist")
checklist
is auto-installed: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.
Oops. Was that what I was expecting?
-- Louise Matthews (during the practicals of 'Statistical Practice in
Epidemiology Using R')
SPE Course, Tartu (May 2005)
> "checklist" %in% rownames(utils::installed.packages())
[1] TRUE
>
The above steps can be reproduced after removing all above-referred dependencies.
Update: the problem lies with RStudio itself. With Rgui.exe, it works. Hence, will close this issue again since it shouldn't happen with current Rprofile.site. Thanks for the update.
RStudio 2022.02.2+485 "Prairie Trillium" Release (8acbd38b0d4ca3c86c570cf4112a8180c48cc6fb, 2022-04-19) for Windows Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) QtWebEngine/5.12.8 Chrome/69.0.3497.128 Safari/537.36
@ThierryO there are some problems with
Rprofile.site
(at 29bf515) in Windows, whenchecklist
and a bunch of dependencies are still missing:checklist
installation is done before setting a CRAN mirror. This triggers RStudio to show a dialogue to select one, which isn't ideal.checklist
installation fails:It can be remedied manually, while still in the same session:
Some other observations:
https://github.com/inbo/tutorials/blob/29bf515793b9f86d7a82956cf3f0b945bc4373a3/content/installation/administrator/admin_install_r/Rprofile.site#L1-L3
below the
options()
statement makes RStudio not able to start.remotes::install_github
) ifchecklist
is the only missing package (i.e. when the above dependencies have been installed).remotes::install_github
) if the above three lines are commented out.remotes::install_github()
doesn't seem to get a package installed (mentioned by @DriesAdriaens for"inbo/n2khab@59a16bc"
), and reproduced below on my machine: