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
R 3.6.0 - Fatal error with .Rprofile #4723
Comments
|
Perhaps this has to do with: https://github.com/gaborcsardi/prompt/blob/e5248b5b498958a3cfad5308eac505ebbcc3d16a/R/package.R#L22 |
|
You can also trigger this with an .Rprofile of: |
|
Thanks @DavisVaughan for reporting this here. I think you're right and |
|
Ah, I found the commit in R 3.6 that changed things: This seems to suggest that the prompt package and knitr need to be updated to not use a function that can possibly set the |
|
+1 that I'm seeing this error pop up with my |
|
A temporary workaround is to set |
…g R: 1. It does not like options 'error' being set, cf. rstudio/rstudio#4723 2. It has _R_CHECK_LENGTH_1_LOGIC2_=true bug, cf. rstudio/rstudio#4751
|
I am still getting this error. Essentially, running the default rmarkdown document with the following chunk: will lead RStudio to crash, printing repeatedly on the console the error message: (repeat ad nauseam) So, my google fu returned this issue, which is similar to mine. At least, if I set The solution offered above, that a line If I add a line with some error handling option sure thing, I get the same error as referenced in the GitHub issue. Not very helpful. The solution suggested,
doesn't work for me either, unless this involves something different than a line like on So I am at a loss on what to do, other than revert to R 3.5.3 and wait for patch 3.6.1. |
|
Verified in RStudio Desktop 1.2.1522 on MacOS 10.14.6 with R 3.6.0. @Lornebradia The symptoms you're describing look like issue #4759. If you're still experiencing the problem, can you please include the information in that ticket, along with the version of RStudio you're using. Thanks! |
|
I tried the very first fix. usethis::edit_r_profile() and got the following error: Error in library(prompt) : there is no package called ‘prompt’ |
|
@Ayeshasaeedhaq you need to install the library first with |
|
Will try, thanks
…On Fri, Feb 26, 2021, 7:39 AM Matteo Gagliolo ***@***.***> wrote:
@Ayeshasaeedhaq <https://github.com/Ayeshasaeedhaq> you need to install
the library first with install.packages("prompt")
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#4723 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ADMRWRZWP454TDXUFFLWJK3TA6QC3ANCNFSM4HJDEISA>
.
|
System details
Steps to reproduce the problem
Place the following in your
.Rprofilewithusethis::edit_r_profile():then restart RStudio.
Describe the problem in detail
Immediately upon opening, I get this screen:
I think the key here is
Error: option error has NULL valueThis shows up in other places as well, like knitr. I don't have an easily reproduce example for that quite yet, but you can see this twitter thread for a few complaints: https://twitter.com/romain_francois/status/1122782045653164034
Also cc @romainfrancois since it happened to him too.
The text was updated successfully, but these errors were encountered: