A drat repository is a way to make R packages more easily available to end users.
How to use it:
- Make sure that you have the
drat
package installed - Add this repo to your current session
drat::addRepo("inbo")
- Use
install.packages()
orupdate.packages()
to install or update the packages
Visit https://inbo.github.io/drat/ for an overview of the available packages.
- Use the
Authors@R
in the DESCRIPTION. This is required to generate the package website withpkgdown
. - Use a fixed date in the vignette preable. Setting the date to
Sys.Date()
cause the the vignette to update with easy run of the drat repository, resulting in unnecessary changes in the history of the drat repository. - In case the vignette uses HTML widgets, make sure that the have stable id's. The reason for this is similar as the fixed dates. It takes only 3 simple steps:
- Add
htmlwidgets
to theDESCRIPTION
underSuggests
. - Add
%\VignetteDepends{htmlwidgets}
to the vignette preamble. - Add
library(htmlwidgets)
andsetWidgetIdSeed(my_fancy_number)
to the code of the vignette.my_fancy_number
can be any integer to your liking.
- Add