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

Reproduce behavior of load_example from dscr #120

Open
gaow opened this issue Apr 25, 2018 · 2 comments
Open

Reproduce behavior of load_example from dscr #120

gaow opened this issue Apr 25, 2018 · 2 comments

Comments

@gaow
Copy link
Member

gaow commented Apr 25, 2018

We may want to add for dscrutils something like dscr::load_example. Currently I have something like this implemented:

[GW] cd one_sample_location/first_investigation/t/
[GW] ls
t_1.rds
[GW] echo a | dsc-query t_1.rds -o interactive 
INFO: Loading database ...
INFO: Data dumped to text files interactive.out and interactive.script.

It basically saves the script that generates the output , and dump the output in plain text. But it would be better to have dscrutils handle it.

The plain command equivalent is:

Rscript -e "cat(readRDS('t_1.rds')\$DSC_DEBUG\$script)" > interactive.R
@pcarbo
Copy link
Member

pcarbo commented Apr 25, 2018

@gaow Did Matthew ask for this? Running cat(readRDS("t_1.rds")$DSC_DEBUG$script) in R seems easy enough; do you think we really need anothe function to do this?

@gaow
Copy link
Member Author

gaow commented Apr 25, 2018

Yes, I'm just documenting a request from Matthew. We'll still have to see what is the best way to combine it with dscquery().

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants