Skip to content

Commit

Permalink
Shorter setting names in platform info
Browse files Browse the repository at this point in the history
* `pandoc_version` -> `pandoc`
* `rstudio_versionn` -> `rstudio`
  • Loading branch information
gaborcsardi committed Oct 6, 2021
1 parent 3dad968 commit e9bfabf
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
7 changes: 4 additions & 3 deletions R/platform-info.R
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,8 @@
#' * `ctype`: Native character encoding, from the current locale.
#' * `tz`: The current time zone.
#' * `date`: The current date.
#' * `rstudio_version`: RStudio format string, only added in RStudio.
#' * `rstudio`: RStudio format string, only added in RStudio.
#' * `pandoc`: pandoc version and path
#'
#' @seealso Similar functions and objects in the base packages:
#' [base::R.version.string], [utils::sessionInfo()], [base::version],
Expand All @@ -34,8 +35,8 @@ platform_info <- function() {
ctype = Sys.getlocale("LC_CTYPE"),
tz = Sys.timezone(),
date = format(Sys.Date()),
rstudio_version = get_rstudio_version(),
pandoc_version = get_pandoc_version()
rstudio = get_rstudio_version(),
pandoc = get_pandoc_version()
)))
}

Expand Down
2 changes: 1 addition & 1 deletion tests/testthat/test-platform-info.R
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ test_that("platform_info", {
expect_equal(
names(pi),
c("version", "os", "system", "ui", "language", "collate", "ctype",
"tz", "date", "pandoc_version")
"tz", "date", "pandoc")
)

## This can be a variety of strings, e.g. "R Under development"
Expand Down

0 comments on commit e9bfabf

Please sign in to comment.