-
Notifications
You must be signed in to change notification settings - Fork 67
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
Error in if (latest_R_version == R_version) #170
Comments
Coming to say I still have the same issue in January 2023 - but also just wondering why the regular expression could not be dynamic - why isn't the first part of the regular expression just |
And if you don't feel like maintaining that code, you can simply rely on rversions. It seems to be actively maintained by some well known names in the R community.
|
I am facing the same error with
However when I change the 3 to 4 in the I am still getting an error
How to fix this? |
latest_R_version is extracted from the html at https://cran.rstudio.com/bin/windows/base/ That page now seems to include a commented reference to 4.3.0 beyond the most up to date build (4.4.0). Hence you get a vector instead of a string and the listed condition throws an error. You can fix the functions by adding the following code before running them (but after loading rinno):
Ugly and still at risk of breaking in the future if the cran pages change or R 5 comes out, but it works for now. |
@matdillen Could you explain this solution better to me please? |
You can see it implemented for example here: https://github.com/AgentschapPlantentuinMeise/MIDSCalculator/blob/main/src/rinno_installer.R The above script updates the
|
When using
create_app
with usual arguments andinclude_R=TRUE
I get the error:Error in if (latest_R_version == R_version) { :
argument is of length zero
I believe the error is in get_R.R on line 23:
The regular expression should start with
[1-4]
, since R4.+ is now the current R version.The text was updated successfully, but these errors were encountered: