Skip to content

Commit

Permalink
Simplify the return value of version() by coding as a named string. U…
Browse files Browse the repository at this point in the history
…se ?auto_unbox=TRUE in URL to convert from array to string
  • Loading branch information
stefvanbuuren committed May 14, 2024
1 parent cfc74ea commit 5f32973
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions R/version.R
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,12 @@
#' @export
version <- function(package = "james") {
pkg <- package[1L]
list(
package = pkg,
packageVersion = as.character(packageVersion(pkg)),
packageDate = as.character(packageDate(pkg)),
Rversion = as.character(getRversion())
as.list(
c(
package = pkg,
packageVersion = as.character(packageVersion(pkg)),
packageDate = as.character(packageDate(pkg)),
Rversion = as.character(getRversion())
)
)
}

0 comments on commit 5f32973

Please sign in to comment.