rpac_travis: Create a Travis-CI yaml template

View source: R/rpac_travis.R

rpac_travisR Documentation

Create a Travis-CI yaml template

Description

rpac_travis() creates a template for Linux and Mac OS tests with suggestions for settings for covr and vdiffr testing.

Usage

rpac_travis(path = ".", append = TRUE)

Arguments

path

Pass a path as string. Default is current working directory ('.').

append

Append text to an existing file. Default is TRUE.

Note

Adds blurbs for travis-ci and codecov shields. Packages need to be added manually to .travis.yml and DESCRIPTION later on. Also see the template from usethis::use_travis()

Author(s)

Antonio J Berlanga-Taylor <https://github.com/AntonioJBT/Rpacker>

See Also

use_travis.

Examples


## Not run: 
rpac_travis()
# Copy packages manually as functions and dependencies get added:
pkgs <- c('data.table',
          'ggplot2',
          'cowplot',
          'dplyr'
          )
for (i in pkgs) {
  i <- paste0('- ', i)
  cat(i, '\n')
  }

## End(Not run)


AntonioJBT/Rpacker documentation built on May 1, 2024, 1:06 a.m.