mirror of
https://github.com/agdamsbo/FreesearchR.git
synced 2025-09-12 01:49:39 +02:00
session data
This commit is contained in:
parent
aa94a67707
commit
2d0508220e
1 changed files with 19 additions and 0 deletions
19
data-raw/session.R
Normal file
19
data-raw/session.R
Normal file
|
@ -0,0 +1,19 @@
|
|||
## code to prepare `session` dataset goes here
|
||||
|
||||
session <- devtools::session_info()
|
||||
|
||||
platform <- c(session$platform,
|
||||
"FreesearchR"=paste(gsub("Version: ","",readLines(here::here('DESCRIPTION'))[3]),format(Sys.time(),format = '%y%m%d'),sep='.'))
|
||||
|
||||
platform <- data.frame(option=names(platform),value=Reduce(c,platform))
|
||||
|
||||
libs <- as.data.frame(session$packages)[names(session$packages) %in% c("package","loadedversion","date","source")]
|
||||
|
||||
rownames(libs) <- NULL
|
||||
|
||||
session_data <- list(
|
||||
platform=platform,
|
||||
libs=libs
|
||||
)
|
||||
|
||||
usethis::use_data(session_data,internal = TRUE, overwrite = TRUE)
|
Loading…
Add table
Reference in a new issue