Skip to content

Commit

Permalink
add logging of used cache to check and render
Browse files Browse the repository at this point in the history
  • Loading branch information
nuest committed Nov 13, 2024
1 parent c44e191 commit db9c88d
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion R/register.R
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,8 @@ register_render <- function(register = read.csv("register.csv", as.is = TRUE),

# Loading config.R file
source(system.file("extdata", "config.R", package = "codecheck"))

message("Using cache path ", R.cache::getCacheRootPath())

register_table <- preprocess_register(register, filter_by)
# Setting number of codechecks now for later use. This is done to avoid double counting codechecks
Expand Down Expand Up @@ -54,14 +56,17 @@ register_render <- function(register = read.csv("register.csv", as.is = TRUE),
#' @param to The last register entry to check
#'
#' @author Daniel Nüst
#' @importFrom R.cache getCacheRootPath
#' @importFrom gh gh
#' @export
register_check <- function(register = read.csv("register.csv", as.is = TRUE),
from = 1,
to = nrow(register)) {
# Loading config.R file
source(system.file("extdata", "config.R", package = "codecheck"))


message("Using cache path ", R.cache::getCacheRootPath())

for (i in seq(from = from, to = to)) {
cat("Checking", toString(register[i, ]), "\n")
entry <- register[i, ]
Expand Down

0 comments on commit db9c88d

Please sign in to comment.