ficonsulting / RInno

How to install local shiny apps
https://ficonsulting.github.io/RInno/
Other
307 stars 67 forks source link

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

Open adityapt opened 4 years ago

adityapt commented 4 years ago

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