Skip to content

Commit db9c88d

Browse files
committed
add logging of used cache to check and render
1 parent c44e191 commit db9c88d

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

R/register.R

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,8 @@ register_render <- function(register = read.csv("register.csv", as.is = TRUE),
2626

2727
# Loading config.R file
2828
source(system.file("extdata", "config.R", package = "codecheck"))
29+
30+
message("Using cache path ", R.cache::getCacheRootPath())
2931

3032
register_table <- preprocess_register(register, filter_by)
3133
# Setting number of codechecks now for later use. This is done to avoid double counting codechecks
@@ -54,14 +56,17 @@ register_render <- function(register = read.csv("register.csv", as.is = TRUE),
5456
#' @param to The last register entry to check
5557
#'
5658
#' @author Daniel Nüst
59+
#' @importFrom R.cache getCacheRootPath
5760
#' @importFrom gh gh
5861
#' @export
5962
register_check <- function(register = read.csv("register.csv", as.is = TRUE),
6063
from = 1,
6164
to = nrow(register)) {
6265
# Loading config.R file
6366
source(system.file("extdata", "config.R", package = "codecheck"))
64-
67+
68+
message("Using cache path ", R.cache::getCacheRootPath())
69+
6570
for (i in seq(from = from, to = to)) {
6671
cat("Checking", toString(register[i, ]), "\n")
6772
entry <- register[i, ]

0 commit comments

Comments
 (0)