From 287860e9d675aa256658b4849ea6ac0e8c1e0b39 Mon Sep 17 00:00:00 2001 From: Michael Chirico Date: Fri, 1 Nov 2024 15:29:19 -0700 Subject: [PATCH] Robust to NULL osVersion --- R/bug-report.R | 1 + 1 file changed, 1 insertion(+) diff --git a/R/bug-report.R b/R/bug-report.R index bd851eb..ffd1d60 100644 --- a/R/bug-report.R +++ b/R/bug-report.R @@ -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 <- "" templateFile <- system.file("resources/bug-report.md", package = "rstudioapi") template <- readLines(templateFile)