https://github.com/kn1kn1/SapporoCovidMonitor 作成時のメモ
- TokyoCovidMonitor をフォークする。
- TokyoCovidMonitor配下のファイルは一旦削除し、以下に記載の手順で新規rstanパッケージを作成する。
library("rstantools")
rstan_create_package(path = 'SapporoCovidMonitor')
- inst/stan/tokbsts.stanとR/analysis.Rを追加する。
- https://mc-stan.org/rstantools/articles/minimal-rstan-package.html の続きを実行する。
example(source) # defines the sourceDir() function
try(roxygen2::roxygenize(load_code = sourceDir), silent = TRUE)
pkgbuild::compile_dll()
roxygen2::roxygenize()
- 以下でLICENSE, LICENSE.mdを作成する。
usethis::use_mit_license()