Skip to content

Commit

Permalink
guard against empty / missing R version in settings
Browse files Browse the repository at this point in the history
  • Loading branch information
kevinushey committed May 26, 2023
1 parent 141a853 commit 6014f8d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion DESCRIPTION
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
Package: renv
Type: Package
Title: Project Environments
Version: 0.17.3-72
Version: 0.17.3-73
Authors@R: c(
person("Kevin", "Ushey", role = c("aut", "cre"), email = "kevin@rstudio.com"),
person("Posit Software, PBC", role = c("cph", "fnd"))
Expand Down
6 changes: 3 additions & 3 deletions R/lockfile.R
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,9 @@ renv_lockfile_init <- function(project) {

renv_lockfile_init_r_version <- function(project) {

version <-
settings$r.version(project = project) %||%
getRversion()
version <- settings$r.version(project = project)
if (!pstring(version))
version <- getRversion()

format(version)

Expand Down

0 comments on commit 6014f8d

Please sign in to comment.