README.md

r.example

R-CMD-check Codecov test coverage

Initial manual steps to get setup the starting point

Alternatively, clone and run renv::restore()

All following commands in the package folder in R.

Add basic development-only packages:

Make sure renv is installed globally, then:

Adapt the R-CMD-check.yaml to the state of this repository. This file is used for continuous integration, meaning that if you create a pull request, Github builds a linux "computer", installs linux libraries required for packages, installs R and the packages and checks your package. Only if you get a green check, you should be able to merge the pull request. That means your main branch is always in a workign state. If you add libraries such as sf that need system geo libraries, make sure to include these in the appropriate section of the R-CMD-check.yml in the linux package section so the "computer" on Github also installs these.

Add badge: - usethis::use_github_action("test-coverage") (delete the specific coverage action again) - use_github_actions_badge(name = "R-CMD-check", repo_spec = NULL)

On GitHub,

Then push your changes on a new branch.

Workflows:



telegott/r.example documentation built on March 24, 2022, 2:45 p.m.