Skip to content
/ drat Public

A repository with R packages created and maintained by INBO

License

Notifications You must be signed in to change notification settings

inbo/drat

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 

Repository files navigation

INBO drat repository

A drat repository is a way to make R packages more easily available to end users.

How to use it:

  1. Make sure that you have the drat package installed
  2. Add this repo to your current session drat::addRepo("inbo")
  3. Use install.packages() or update.packages() to install or update the packages

Visit https://inbo.github.io/drat/ for an overview of the available packages.

Issues for packages maintainers

  • Use the Authors@R in the DESCRIPTION. This is required to generate the package website with pkgdown.
  • 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:
    1. Add htmlwidgets to the DESCRIPTION under Suggests.
    2. Add %\VignetteDepends{htmlwidgets} to the vignette preamble.
    3. Add library(htmlwidgets) and setWidgetIdSeed(my_fancy_number) to the code of the vignette. my_fancy_number can be any integer to your liking.