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

Precompile vignette to pass CRAN #20

Merged
merged 2 commits into from
Oct 5, 2024
Merged

Conversation

jonocarroll
Copy link
Contributor

Precompile the vignette, which requires network access and potentially takes too long.

This (via vignettes/precompile.R) knits the vignette (.Rmd.orig) into a new .Rmd with the results inserted where they would appear, and the code changed to non-evaluating. Also includes some code to move the figures to the right directory.

This can now be rendered on installation without requiring network access, but does require the developer to re-run it occasionally.

I also reduced the number of games returned from lichess since that was taking a long time, and fixed one inconsequential typo in a chunk name.

Addresses #17, hopefully suitable for a re-submission to CRAN.

Copy link
Owner

@JaseZiv JaseZiv left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks heaps for addressing this @jonocarroll!

@JaseZiv JaseZiv merged commit 6f49afc into JaseZiv:master Oct 5, 2024
1 check passed
@jonocarroll
Copy link
Contributor Author

You probably want to re-activate the check Action

https://github.com/JaseZiv/chessR/actions/workflows/R-CMD-check.yaml

I'm actually thinking that the figure path I used isn't portable (on Windows) so I'm adding a new very small PR to make that more general.

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

Successfully merging this pull request may close these issues.

2 participants