dataspice icon indicating copy to clipboard operation
dataspice copied to clipboard

Session_Info generator

Open derek-corcoran-barrios opened this issue 4 years ago • 4 comments

I am loving the dataspice package, the one thing that is missing is a way to generate a sessionInfo() metadata generator. For now I am transforming the session info into a couple of data frames, (one for packages and one for OS) and add it as two new datasets. It would be awesome to have it as a separate part of the metadata and of the website

Cheers

Derek

derek-corcoran-barrios avatar Mar 08 '21 11:03 derek-corcoran-barrios

Hi @derek-corcoran-barrios, thanks for the fantastic idea. Having session info in the web page and/or the metadata sounds like a pretty useful addition. Do you have a link to any examples of what you've already done? It might provide some nice context around your use case.

amoeba avatar Mar 13 '21 03:03 amoeba

Hey @amoeba I will clone this repo and take a crack at it, if you think it would help

derek-corcoran-barrios avatar Mar 14 '21 08:03 derek-corcoran-barrios

Hello again @amoeba , this is the way I am currently doing it, which is not the most elegant, but might help getting the conversation started, I generate 2 different dataframes, and then export them as a csv:

Session <- devtools::session_info()

## Write the platform info

platform <- data.frame(Setting = names(Session$platform)[-1], value = as.character(unlist(Session$platform[2:length(Session$platform)])))

## And the packages info

Packages <- as.data.frame(Session$packages)

## Export as csvs

write_csv(platform, "platform.csv")
write_csv(Packages, "Packages.csv")

Then I used those csv as a regular dataset for the data spice

derek-corcoran-barrios avatar Mar 23 '21 13:03 derek-corcoran-barrios

Hey @amoeba, I noticed you added this for the version 1.1 version, I think I am really going to use this package a lot. If you need help developing this package I would be happy to help

derek-corcoran-barrios avatar Mar 29 '21 07:03 derek-corcoran-barrios