Skip to content

[example] add R example #2183

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

Merged
merged 2 commits into from
Jul 9, 2024
Merged

[example] add R example #2183

merged 2 commits into from
Jul 9, 2024

Conversation

ignatiusm
Copy link
Contributor

@ignatiusm ignatiusm commented Jul 9, 2024

Summary

This adds README and example R script (along with devbox.lock and devbox.json)

How was it tested?

I tested the example repo on both aarch64-darwin and x86_64-linux by cd'ing into examples/data_science/R directory; running devbox shell then Rscript src/examplePlot.R. I considered the test to have passed if an Rplots.pdf file was produced with a scatterplot image.

This should do for most R users. However there is a case that I haven't handled: Sometimes users will want to install packages that are not on CRAN and therefore not on nixpkgs/nixhub.io (e.g. installing packages from github using the R package devtools). I'm not sure of an easy way to address this yet.

Addresses #2182

@ignatiusm ignatiusm mentioned this pull request Jul 9, 2024
@Lagoja
Copy link
Contributor

Lagoja commented Jul 9, 2024

This is awesome, thank you for contributing! I can add a similar page to our documentation once this is merged in

@Lagoja Lagoja merged commit 56ba0c1 into jetify-com:main Jul 9, 2024
24 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants