Skip to content
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: R version - 4.0.0 - was not found on CRAN. #162

Open
magnusahlstroem opened this issue May 26, 2021 · 9 comments
Open

Error: R version - 4.0.0 - was not found on CRAN. #162

magnusahlstroem opened this issue May 26, 2021 · 9 comments

Comments

@magnusahlstroem
Copy link

It seems that when running this code

R_versions <- c(unique(stats::na.omit(stringr::str_extract(readLines("https://cran.rstudio.com/bin/windows/base/", warn = F), "[1-3]\.[0-9]+\.[0-9]+"))),
stats::na.omit(stringr::str_extract(readLines("https://cran.rstudio.com/bin/windows/base/old/", warn = F), "[1-3]\.[0-9]+\.[0-9]+")))

It only gets R versions up to 3.6.3

\Magnus

@marcwarmoes
Copy link

Guess it should be:
R_versions <- c(unique(stats::na.omit(stringr::str_extract(readLines("https://cran.rstudio.com/bin/windows/base/", warn = F), "[1-4]\.[0-9]+\.[0-9]+"))),
stats::na.omit(stringr::str_extract(readLines("https://cran.rstudio.com/bin/windows/base/old/", warn = F), "[1-4]\.[0-9]+\.[0-9]+")))

Changed [1-3] to [1-4], you could change it to [1-5] if R 5.x.x is anticipated in the next ten years.
When I set 'R_version = "3.6.3"' using "create_app", I can create the app and also compile it, but the app still doesn't install from .exe because it can not find R 3.6.3....

@Mathematinho
Copy link

yes, these changes need to be made in both
trace(RInno::get_R,edit=T)
and
trace(RInno::code_section,edit=T)

@spfeiffe
Copy link

spfeiffe commented Aug 17, 2021

Could someone please make those changes so that the RInno package works again? Thank you!

@alessio619
Copy link

Any news on this? I still see the issue :)

@marcwarmoes
Copy link

There is already a pull request for it

@alessio619
Copy link

Yeah, I saw that it was approved but has not been merged. However, I installed the branch, and was not fully functional, the same correction needs to be done in the code_section() functions (lines 32 and 33) and it works. I hope the project is not a zombie, this is a game-changer.

@bschneidr
Copy link

Yes, you're right about that @alessio619. I was able to get it working in this commit:
bschneidr@fe8f2cd
Really hoping this can get fixed in the RInno package itself.

@jessekps
Copy link

looking at the description file I see:

Maintainer: ORPHANED

Changing the status to orphaned and updating some docs seems the only update on github since Feb 2019, almost 4 years. I hope someone can take over, it is a useful package.

@or-sirina
Copy link

yes, these changes need to be made in both trace(RInno::get_R,edit=T) and trace(RInno::code_section,edit=T)

Thank you so much, this really helps!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

8 participants