Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Release preparation #491

Merged
merged 1 commit into from
Sep 6, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion R/assessment_functions.R
Original file line number Diff line number Diff line change
Expand Up @@ -2866,7 +2866,7 @@ assess_negativebinomial <- function(
output$reference.values <- lapply(AC, function(i) {
ctsm.lmm.refvalue(
output,
year = max(data$year),
yearID = max(data$year),
refvalue = log(i),
lower.tail = switch(good_status, low = TRUE, high = FALSE)
)
Expand Down
6 changes: 3 additions & 3 deletions R/graphics_functions.R
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ plot_assessment <- function(
auxiliary = "default") {

# silence non-standard evaluation warnings
seriesID <- NULL
.data <- NULL

# graphics_functions.R

Expand Down Expand Up @@ -224,7 +224,7 @@ plot_assessment <- function(

lapply(series_id, function(id) {

data <- dplyr::filter(assessment_obj$data, seriesID == id)
data <- dplyr::filter(assessment_obj$data, .data$seriesID == id)

assessment <- assessment_obj$assessment[[id]]

Expand Down Expand Up @@ -1011,7 +1011,7 @@ plot_auxiliary <- function(
xykey.cex = 1.0, ntick.x = 3, ntick.y = 3, newPage = TRUE, ...) {

# silence non-standard evaluation warnings
info.imposex <- NULL
.data <- info.imposex <- NULL

# auxiliary specifies the choice of 'auxiliary' variables to plot:
# default:
Expand Down
2 changes: 1 addition & 1 deletion R/import_check_functions.R
Original file line number Diff line number Diff line change
Expand Up @@ -454,7 +454,7 @@ ctsm.check.sex.biota <- function(data, info) {
# extra checks for imposex determinands and EROD

# silence non-standard evaluation warnings
sex <- NULL
.data <- sex <- NULL


# global check of ICES codes
Expand Down
8 changes: 7 additions & 1 deletion R/import_functions.R
Original file line number Diff line number Diff line change
Expand Up @@ -2301,7 +2301,8 @@ create_timeseries <- function(

# silence non-standard evaluation warnings
.data <- .month <- .not_ok <- group <- value <- NULL
determinand <- uncertainty <- uncertainty_sd <- uncertainty_rel <- species_group <- NULL
determinand <- uncertainty <- uncertainty_sd <- uncertainty_rel <- NULL
concentration <- distribution <- species_group <- NULL

# arguments

Expand Down Expand Up @@ -3926,6 +3927,11 @@ check_uncertainty <- function(data, info, type = c("reported", "calculated")) {
# type = calculated is used to check whether implausible uncertainties have
# been created in e.g. the normalisation process

# silence non-standard evaluation warnings

.data <- reason <- NULL


type <- match.arg(type)


Expand Down
5 changes: 3 additions & 2 deletions R/information_functions.R
Original file line number Diff line number Diff line change
Expand Up @@ -2649,14 +2649,15 @@ get.info.imposex <- function(
#' 2024. The 2022 world health organization reevaluation of human and mammalian
#' toxic equivalency factors for polychlorinated dioxins, dibenzofurans and
#' biphenyls. Regulatory Toxicology and Pharmacology 146;
#' [https://doi.org/10.1016/j.yrtph.2023.105525]
#' [https://doi.org/10.1016/j.yrtph.2023.105525](https://doi.org/10.1016/j.yrtph.2023.105525)
#'
#' Van den Berg M, Birnbaum LS, Denison M, De Vito M, Farland W, Feeley M,
#' Fiedler H, Hakansson H, Hanberg A, Haws L, Rose M, Safe S, Schrenk D,
#' Tohyama C, Tritscher A, Tuomisto J, Tysklind M, Walker N, Peterson RE, 2006.
#' The 2005 World Health Organization reevaluation of human and mammalian toxic
#' equivalency factors for dioxins and dioxin-like compounds. Toxicological
#' Sciences 93 223–241; [https://doi.org/10.1093/toxsci/kfl055]
#' Sciences 93 223–241;
#' [https://doi.org/10.1093/toxsci/kfl055](https://doi.org/10.1093/toxsci/kfl055)
#'
#' @export
info_TEF <- list(
Expand Down
4 changes: 2 additions & 2 deletions R/reporting_functions.R
Original file line number Diff line number Diff line change
Expand Up @@ -634,14 +634,14 @@ write_summary_table <- function(
"shape", "colour"
)

summary <- dplyr::relocate(summary, any_of(wk))
summary <- dplyr::relocate(summary, dplyr::any_of(wk))

if ("dtrend_obs" %in% names(summary)) {
wk <- c(
"dtrend_obs", "dtrend_seq", "dtrend_ten", "nyear_seq",
"power_obs", "power_seq", "power_ten"
)
summary <- dplyr::relocate(summary, all_of(wk), .after = "dtrend")
summary <- dplyr::relocate(summary, dplyr::all_of(wk), .after = "dtrend")
}

sortID <- intersect(
Expand Down
11 changes: 8 additions & 3 deletions R/uncertainty_functions.R
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ ctsm_uncrt_workup <- function(harsat_obj) {
paste0("LOIGN", id_aux)
)

data <- dplyr::select(data, any_of(id))
data <- dplyr::select(data, dplyr::any_of(id))



Expand Down Expand Up @@ -198,8 +198,10 @@ ctsm_uncrt_estimate <- function(data) {

# remove data that is way off

data <- data %>%
dplyr::filter(dplyr::between(relative_u, 1, 100))
data <- dplyr::filter(
data,
dplyr::between(.data$relative_u, 1, 100)
)


# relative error
Expand Down Expand Up @@ -250,6 +252,9 @@ ctsm_uncrt_estimate <- function(data) {
#' @export
ctsm_uncrt_plot_estimates <- function(uncrt_obj, group_id) {

# silence non-standard evaluation warnings
.data <- NULL

data <- dplyr::filter(uncrt_obj$data, .data$group %in% group_id)

data <- dplyr::arrange(data, .data$determinand, .data$concentration)
Expand Down
5 changes: 3 additions & 2 deletions man/info_TEF.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading