Skip to content

Commit

Permalink
Robust to NULL osVersion
Browse files Browse the repository at this point in the history
  • Loading branch information
MichaelChirico authored Nov 1, 2024
1 parent 7afc067 commit 287860e
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions R/bug-report.R
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ bugReport <- function() {
rVersion <- rInfo$R.version$version.string
rVersion <- sub("^R version", "", rVersion, fixed = TRUE)
osVersion <- rInfo$running
if (is.null(osVersion)) osVersion <- "<undetermined osVersion>"

templateFile <- system.file("resources/bug-report.md", package = "rstudioapi")
template <- readLines(templateFile)
Expand Down

0 comments on commit 287860e

Please sign in to comment.