Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Session_Info generator #98

Open
derek-corcoran-barrios opened this issue Mar 8, 2021 · 4 comments
Open

Session_Info generator #98

derek-corcoran-barrios opened this issue Mar 8, 2021 · 4 comments
Assignees
Labels
enhancement New feature or request help wanted Extra attention is needed
Milestone

Comments

@derek-corcoran-barrios
Copy link

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

@amoeba
Copy link
Collaborator

amoeba commented Mar 13, 2021

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 amoeba self-assigned this Mar 13, 2021
@amoeba amoeba added enhancement New feature or request help wanted Extra attention is needed labels Mar 13, 2021
@amoeba amoeba added this to the v1.1 milestone Mar 13, 2021
@derek-corcoran-barrios
Copy link
Author

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

@derek-corcoran-barrios
Copy link
Author

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
Copy link
Author

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

2 participants