- Install dependencies:
install.packages(c("optparse", "plumber"))
- Install package from root directory:
install.packages("src/functionsframework/", repo=NULL, type="source")
or
devtools::install()
install.packages("remotes")
remotes::install_github("averikitsch/functions-framework-r")
install.packages("devtools")
devtools::install_github()
When published:
install.packages("functionsframework", dependencies=TRUE)
- Install:
install.packages("devtools")
install.packages("roxygen2")
- Create framework package (run once):
devtools::create("functionsframework")
- Update files: DESCRIPTION and NAMESPACE
- Add dependencies
- Add
roxygen2
documentation for function, then run:
devtools::document()
- This creates an
.Rd
file in theman/
directory
- Update rmarkdown in
vignettes/functions-framework.Rmd
:
devtools::build_vignettes()
devtools::build()