A minimal example for a drat repository created and uploaded by {tic}, hosting source and binary macOS packages. {tic} is an R package for CI-agnostic workflow definitions for various R projects. See its documentation for more information.
The magic of this example package comes from the macro tic::do_drat()
which is being called in tic.R
.
By default, binaries are only build and pushed for non-dev versions to keep the drat repo size small.
Consult the vignettes of the {tic} package for more details.
Only a few files need to be added or changed to enable integration with {tic}:
tic.R
: This file describes the CI workflow..travis.yml
: This file translates between CI stages of Travis CI and {tic} stages.appveyor.yml
: This file translates between CI stages of AppVeyor and {tic} stages..Rbuildignore
: The listed files should not be part of the R package building process and must be excluded.If you want to experiment with travis and {tic} for a drat project, you can fork it.
usethis::create_from_github()
to automatically create a fork of this repo.
If you use RStudio, a new RStudio project will open.
You may need to set up your SSH credentials first.
See this guide if you're having problems.
(It's definitely worth getting this function running as it saves you a lot of time in the future!)
Alternatively, fork this repo on Github and then create a new R Project within RStudio (File -> New Project -> Version Control -> Github). tic::use_tic()
to set up all requirements needed for the CI integration of your package.Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.