ThinkR-open / golem
Showing 1 of 3 files from the diff.
Other files ignored by Codecov
NEWS.md has changed.

@@ -43,6 +43,7 @@
Loading
43 43
#'     add_dockerfile_heroku()
44 44
#' }
45 45
#'}
46 +
#'@return The `{dockerfiler}` object, invisibly.
46 47
add_dockerfile <- function(
47 48
  path = "DESCRIPTION", 
48 49
  output = "Dockerfile", 
@@ -108,6 +109,8 @@
Loading
108 109
    build_golem_from_source = build_golem_from_source
109 110
  )
110 111
  
112 +
  return(invisible(dock))
113 +
  
111 114
}
112 115
113 116
#' @export
@@ -170,7 +173,7 @@
Loading
170 173
    build_golem_from_source = build_golem_from_source
171 174
  )
172 175
  
173 -
  invisible(output)
176 +
  return(invisible(dock))
174 177
  
175 178
}
176 179
@@ -262,7 +265,7 @@
Loading
262 265
    }
263 266
  }
264 267
  usethis::use_build_ignore(files = output)
265 -
  invisible(output)
268 +
  return(invisible(dock))
266 269
  
267 270
}
268 271
@@ -353,14 +356,11 @@
Loading
353 356
  if ( length(extra_sysreqs)>0 ){
354 357
    system_requirement <- unique(c(system_requirement,extra_sysreqs))
355 358
  } else if (!is.na(sr))   {
356 -
    message(paste("the DESCRIPTION file contains the SystemRequirements bellow : ",sr))
359 +
    message(paste("the DESCRIPTION file contains the SystemRequirements bellow: ",sr))
357 360
    message(paste("please check the Dockerfile created and if needed pass extra sysreqs using the extra_sysreqs param"))
358 361
    
359 362
  }
360 363
  
361 -
  
362 -
  
363 -
  
364 364
  remotes_deps <- remotes::package_deps(packages)
365 365
  packages_on_cran <-  
366 366
    intersect(remotes_deps$package[remotes_deps$is_cran],packages)
@@ -385,7 +385,7 @@
Loading
385 385
  dock <- dockerfiler::Dockerfile$new(FROM = FROM, AS = AS)
386 386
  
387 387
  if (length(system_requirement)>0){
388 -
    if ( !expand){
388 +
    if ( !expand ){
389 389
      dock$RUN(
390 390
        paste(
391 391
          "apt-get update && apt-get install -y ",
@@ -482,9 +482,8 @@
Loading
482 482
      }
483 483
      
484 484
485 -
      if (rlang::is_installed("pkgbuild")) {
485 +
      if (isTRUE(requireNamespace("pkgbuild", quietly = TRUE))) {
486 486
        out <- pkgbuild::build(path = ".", dest_path = ".", vignettes = FALSE)
487 -
        
488 487
        if (missing(out)){
489 488
          cat_red_bullet("Error during tar.gz building"          )
490 489
          
@@ -499,7 +498,6 @@
Loading
499 498
        )
500 499
        }
501 500
        
502 -
        
503 501
      } else {
504 502
        stop("please install {pkgbuild}")
505 503
      }
Files Coverage
R 66.73%
Project Totals (28 files) 66.73%
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