This is a guide intended for developers wanting to lend a hand. It contains detailed instructions on how to setup your development environment and the prerequisites needed to work on this project.
Make sure you have R installed. On macOS:
# libgit2 is required by devtools
brew install r libgit2
brew install --cask rstudio # recommended
R --version # make sure you have 4.1.2, the latest as of writing
If you have never created an R package before, it is good idea to follow the tutorial here: https://r-pkgs.org/whole-game.html
make install
Make sure things are properly installed:
> library(devtools)
Loading required package: usethis
> has_devel()
Your system is ready to build packages!
Install with:
# type="source" prevents a warning about R version
install.packages("...", repos=NULL, type="source")
See vignettes/tutorial.Rmd
If you make modifications to the library, you need to reload it with:
devtools::load_all()
RStudio is pretty useful for some stuff - its installation is recommended.
After having installed the current library:
help(set_server)
browseVignettes(package="avatar")
- Uncomment "output: pdf_document" and "always_allow_html: true", comment "output: rmarkdown::html_vignette".
- Open
tutorial.Rmd
in RStudio - Knit the tutorial vignette
- Run
make lci
to update the docs and tutorial. - Update version in
DESCRIPTION
git add DESCRIPTION
git commit -m "chore: release $VERSION"
git tag -as $VERSION -m "Release version $VERSION"
git push --tags && git push
A GitHub action will then take care of checking the source code and creating a release.
httr
andcurl
- Writing an R package