ficonsulting / ficonsulting/RInno

Error in if (latest_R_version == R_version)

Open
#170 6 comments 5 reactions 0 assignees View on GitHub
Dominant language
HTML
Stars
313
Forks
66
PR merge metrics
No merged PRs in 30d

Description

When using `create_app` with usual arguments and `include_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:

```
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()
```
The regular expression should start with `[1-4]`, since R4.+ is now the current R version.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.