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

Please update get_R.R code to work with R versions 4 and above #151

Open
adityapt opened this issue Apr 27, 2020 · 0 comments
Open

Please update get_R.R code to work with R versions 4 and above #151

adityapt opened this issue Apr 27, 2020 · 0 comments

Comments

@adityapt
Copy link

The following two lines in get_R.R code should be updated to prevent errors while creating apps of versions >=4:

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

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

Lines 2 and 4 should be replaced with [1-4] to apply for versions 4 and above that will be released in the future. Else, the Create_app function will throw an error

Check the code below for example:

image

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

1 participant