-
Notifications
You must be signed in to change notification settings - Fork 284
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Call to use_version() crashes R session #1868
Comments
I can't reproduce this, so I suspect it's due to something else wonky about your system.
|
I hope it is alright that I post on this issue although it has been closed. Just in case somebody else runs into a similar issue in the future. Following @gaborcsardi suggestion on Mastodon, I called use_version from the command line which allowed me to capture the stack trace:
|
To get the stack trace from C I follow these steps provided by @gaborcsardi:
Below I insert the output from typing bt in step 3):
|
This seems like some binary incompatibility between any two of R, cli and purrr. Unfortunately I still cannot reproduce it with the exact same OS version, R version and package versions. :( A long shot, but can you try reinstalling cli and purrr? First from binaries, and then from source: install.packages(c("cli", "purrr"), type = "source") |
@LDalby If that does not work, some questions. How did you install R? Do you have other R versions installed? Can you try with Also, did you load any packages using |
@gaborcsardi Thanks for these suggestions also. I will investigate further and report back. |
I installed R by going to r-project.org and downloaded the installer. I only have R 4.2.2 installed on this machine. I have now tried to first reinstall {cli} and {purrr} from binaries, then from source neither solved the issue. Starting R from a terminal using
My options(
usethis.full_name = "Lars Dalby",
usethis.protocol = "ssh",
usethis.description = list(
"Authors@R" = utils::person(
"Lars", "Dalby",
email = "lars@ecos.au.dk",
role = c("aut", "cre"),
comment = c(ORCID = "0000-0002-7270-6999")
)
),
usethis.destdir = "~/Users/au206907/git",
usethis.overwrite = TRUE
) My R_MAX_VSIZE=100Gb
GITHUB_PAT=<MY-PAT>
GITLAB_PAT=<MY-PAT>
ODBCSYSINI=/opt/homebrew/etc Can't remember why I have a max size 100GB - I should probably get rid of that 😄 |
Thanks, and sorry for the many questions. The only thing I can think of is a broken R installation at this point. Can you try running this to see if it crashes as well: purrr::map(letters, function(x) Sys.sleep(0.5), .progress=TRUE) As a possible workaround, I only have drastic ideas at this point:
|
No worries, I'm just grateful for you taking the time to investigate this! I can run the code below without crashing. purrr::map(letters, function(x) Sys.sleep(0.5), .progress=TRUE) I've been holding up upgrading to 4.3.1 but I think I will just do that now. Will have to do that at some point anyway. One thing I was thinking though, was that I have several |
If renv is active when you see the crashes, then yes, definitely. Otherwise it is less likely, but still not impossible that somehow you ended up with a broken installation on cli (?). |
It will crash also without renv being active. |
I finally got around to upgrading my system. I ran: sudo rm -rf /Applications/R.app
sudo rm -rf /Library/Frameworks/R.framework Then installed the latest version of R from r-project.org Installed the packages I use and now |
Calling
use_version()
, then selecting one of the options will crash my R session. Before the 💣 it will update the DESCRIPTION file with the new version number, so perhaps it is related to updating the NEWS.md?Has worked like a charm for me for a long time.
I have no clue how to debug this. Any hints would be much welcome!
Created on 2023-06-22 with reprex v2.0.2
Session info
The text was updated successfully, but these errors were encountered: