Skip to content

Commit

Permalink
Merge pull request #309 from MichaelChirico/patch-1
Browse files Browse the repository at this point in the history
Robust to NULL osVersion
  • Loading branch information
kevinushey authored Nov 4, 2024
2 parents 7afc067 + 287860e commit 68b315e
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 68b315e

Please sign in to comment.