MatthewBJane / ThemePark

Fun ggplot themes for popular culture
http://matthewbjane.com/ThemePark/
MIT License
198 stars 13 forks source link

Package Structure TODOs #26

Closed christopherkenny closed 1 year ago

christopherkenny commented 1 year ago

These are a few small things from #17 that can help make sure this follows some best practices (making future edits easier).

MatthewBJane commented 1 year ago

So if we do these things, would we be ready to submit to CRAN? Do I have to make a local branch and then push to github when I run these tests?

christopherkenny commented 1 year ago

Yeah, assuming they don't flag any issues, then it would be in pretty good shape to send to CRAN. Yeah, you can just run them from a local branch and push once they run. (It's quick.) It will add some documentation items and .Rbuildignore them.

MatthewBJane commented 1 year ago

Okay I just committed the changes. I did not do the PR or issues template, is that necessary?

christopherkenny commented 1 year ago

No, it's definitely not necessary. Thanks!

MatthewBJane commented 1 year ago

Okay would you mind adding some tests? I am a bit confused how it works. I added the folder for it and a file called test-ThemePark. Also @christopherkenny and @lukepilling you can check out the pkgdown site at matthewbjane.com/theme_park

lcpilling commented 1 year ago

The site looks great! Good choice of colour scheme 👍 absolutely no idea how tests for packages work, sorry

christopherkenny commented 1 year ago

Love the bootswatch choice. I'll add some tests tonight. I'll also add a bit of structure to the reference page. Happy to explain what I'm adding once the basics are in.

christopherkenny commented 1 year ago

Looks like the sysfonts dependency doesn't correctly import packages, so this is a bit trickier than expected. Will work on that

christopherkenny commented 1 year ago

Okay that issue is resolved. The package now passes checks. I can add some default tests for the themes over the next few days.

MatthewBJane commented 1 year ago

Awesome thanks a ton @christopherkenny

christopherkenny commented 1 year ago

Closed by https://github.com/MatthewBJane/ThemePark/commit/284d0c644cac4be9c811d3bbfd5b3af36c0d1721