ropensci / piggyback

@@ -8,7 +8,7 @@
Loading
8 8
#' Otherwise, returns `NULL` (invisibly) if no file matching the name was found.
9 9
#' @export
10 10
#' @examples
11 -
#' \donttest{
11 +
#' \dontrun{
12 12
#' readr::write_tsv(mtcars, "mtcars.tsv.gz")
13 13
#' ## Upload
14 14
#' pb_upload("mtcars.tsv.gz",

@@ -28,7 +28,8 @@
Loading
28 28
      glob
29 29
    )
30 30
    usethis::use_build_ignore(c(".pbattributes", "manifest.json"))
31 -
    if (!is.null(git2r::discover_repository("."))) {
31 +
32 +
    if (!is.null(maybe(gert::git_find("."), NULL))) {
32 33
      usethis::use_git_ignore("manifest.json")
33 34
      usethis::use_git_ignore(glob)
34 35
    }

@@ -26,7 +26,7 @@
Loading
26 26
#' @importFrom gh gh
27 27
#' @importFrom fs dir_create
28 28
#' @export
29 -
#' @examples \donttest{
29 +
#' @examples \dontrun{
30 30
#'  ## Download a specific file.
31 31
#'  ## (dest can be omitted when run inside and R project)
32 32
#'  piggyback::pb_download("data/iris.tsv.gz",

@@ -7,7 +7,7 @@
Loading
7 7
#' @inheritParams pb_download
8 8
#' @return the URL to download a file
9 9
#' @export
10 -
#' @examples \donttest{
10 +
#' @examples \dontrun{
11 11
#'
12 12
#' pb_download_url("data/iris.tsv.xz",
13 13
#'                 repo = "cboettig/piggyback-tests",
Files Coverage
R 54.83%
Project Totals (10 files) 54.83%
1
comment: false
2

3
coverage:
4
  status:
5
    project:
6
      default:
7
        target: auto
8
        threshold: 1%
9
    patch:
10
      default:
11
        target: auto
12
        threshold: 1%
Sunburst
The inner-most circle is the entire project, moving away from the center are folders then, finally, a single file. The size and color of each slice is representing the number of statements and the coverage, respectively.
Icicle
The top section represents the entire project. Proceeding with folders and finally individual files. The size and color of each slice is representing the number of statements and the coverage, respectively.
Grid
Each block represents a single file in the project. The size and color of each block is represented by the number of statements and the coverage, respectively.
Loading