signaturescience / focustools

Forecasting COVID-19 in the US
https://signaturescience.github.io/focustools/
GNU General Public License v3.0
0 stars 0 forks source link

r package framework #11

Closed vpnagraj closed 3 years ago

vpnagraj commented 3 years ago

moving towards our first submission (and beyond) we should try to get our code into a stable, distributable format ... ie. an R package

i'll set up the skeleton to conform to the usual standards (R code in R/, roxygen, buildignore stuff, etc)

stephenturner commented 3 years ago

keeping it all in this focustools repo?

vpnagraj commented 3 years ago

@stephenturner good question.

yeah that was my thought. no need to nuke all the scratch/* code to do that either ... we can just buildignore any directories that arent part of the pkg until we smooth out the internals

stephenturner commented 3 years ago

I'm going to suggest we clean up some of the nonstandard dirs laying around here. suggestions:

vpnagraj commented 3 years ago

yeah thats more or less what i was thinking

in progress now. will comment here when i push up to another branch / do a PR

vpnagraj commented 3 years ago

working on an outline for the package at https://github.com/signaturescience/focustools/tree/pkg

my todo before i open a PR and merge:

vpnagraj commented 3 years ago

this is done and implemented as of #13

fully documented. no ERRORS, WARNINGS, NOTES per devtools::check()

there are a ton of new features with the R package API / directory structure:

the analysis in scratch/fable-submission-mockup-allmetrics.R is reimplemented using the new API in the README

we can talk about maintenance / pkg dev stuff on our next call. for the time being, if you're curious about anything here i'd recommend starting with https://r-pkgs.org/

heads up i'm going to punt some of the work to capture relevant exploration code as functions to its own issue(s)

closing this issue.

cc @stephenturner @chulmelowe