Skip to content

itsleeds/DVSA-API

Repository files navigation

tic Project Status: Active – The project has reached a stable, usable state and is being actively developed.

RpackageTemplate

Template to form the basis of ITSLeeds R packages

Installation

Install the package with remotes as follows:

install.packages("remotes") # If you do not already have the remotes package
Change the contents to "user/repo", e.g:
# remotes::install_github("ropensci/stplanr") # for the stplanr package
remotes::install_github("ITSleeds/RpackageTemplate")

Usage

To create a new package and get it on your computer:

  • Create a new repo on GitHub in an appropriate organisation. You can use this template by clicking the “Use this template” button in the top right hand corner of this page.
  • Clone the package onto your computer, e.g. by typing git clone git@github.com:itsleeds/youPackageName in a Linux terminal (try pressing Ctl+Shift+T in RStudio to get to the terminal or open Windows Powershell)
  • Change the name of the .Rproj file, e.g. with the following commands in terminal
cd testPackage
mv RpackageTemplate.Rproj yourPackageName.Rproj
  • Open the project in RStudio as follows:
rstudioapi::openProject("/path/to/yourPackageName")

Continuous integration

To add continuous integration, use the following commands:

remotes::install_github("ropensci/tic")
tic::use_tic()

You can use defaults, such as:

tic::use_tic(wizard = FALSE, linux = "ghactions", mac = "ghactions", windows = "ghactions",
deploy = "ghactions", matrix = "none")

Which will use GitHub Actions.

If you want to create a package website, you can use the following command:

usethis::use_pkgdown()

Resources

See these resources for further information:

Acknowledgement

Acknowledge all the fine people who helped build this package.

Contribution

Please note that the RpackageTemplate project is released with a Contributor Code of Conduct. By contributing to this project, you agree to abide by its terms.

Package Status

This package is part of ongoing research at the University of Leeds, it is provided “as is” and is likely to be updated and changed without warning to meet the research needs of the University.

About

Connect to the DSVA MOT API

Resources

License

Code of conduct

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages