Skip to content

Commit

Permalink
Merge pull request #249 from R-Lum/issue_248
Browse files Browse the repository at this point in the history
Silence notes raised by R CMD check
  • Loading branch information
mcol authored Sep 16, 2024
2 parents a77eb40 + 9336417 commit 053a1c5
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion R/analyse_SAR.TL.R
Original file line number Diff line number Diff line change
Expand Up @@ -303,6 +303,10 @@ analyse_SAR.TL <- function(
## convert to data.table for more convenient column manipulation
temp <- data.table(LnLxTnTx[, c("Name", "Dose", "Repeated", "LxTx")])

## silence notes raised by R CMD check
prev.idx <- criterion <- value <- threshold <- status <- NULL
Name <- Dose <- LxTx <- Repeated <- NULL

# Calculate Recycling Ratio -----------------------------------------------
## we first create a dummy object to use in case there are no repeated doses,
## but replace it in the `if` block if there are any
Expand All @@ -327,7 +331,7 @@ analyse_SAR.TL <- function(

## keep only the repeated doses
RecyclingRatio <- temp[Repeated == TRUE,
.(criterion, value, threshold, status)]
list(criterion, value, threshold, status)]
}

# Calculate Recuperation Rate ---------------------------------------------
Expand Down

0 comments on commit 053a1c5

Please sign in to comment.