SessionInfo
R version 4.0.3 (2020-10-10)
Platform: x86_64-conda-linux-gnu (64-bit)
Running under: Ubuntu 20.04.1 LTS
attached base packages:
[1] stats graphics grDevices utils datasets methods base
other attached packages:
[1] tryCatchLog_1.2.1 dplyr_1.0.2
loaded via a namespace (and not attached):
[1] rstudioapi_0.13 magrittr_2.0.1 tidyselect_1.1.0 lattice_0.20-41 R6_2.5.0 rlang_0.4.9 fansi_0.4.1
[8] tools_4.0.3 grid_4.0.3 utf8_1.1.4 cli_2.2.0 lambda.r_1.2.4 futile.logger_1.4.3 ellipsis_0.3.1
[15] assertthat_0.2.1 tibble_3.0.4 lifecycle_0.2.0 crayon_1.3.4 Matrix_1.2-18 purrr_0.3.4 formatR_1.7
[22] vctrs_0.3.5 futile.options_1.0.1 glue_1.4.2 compiler_4.0.3 pillar_1.4.7 generics_0.1.0 pkgconfig_2.0.3
Observation:
When using a tryCatchLog or tryCatch function with arrange from dplyr , it throws annoying INFO messages :
library(dplyr)
library(tryCatchLog)
temp <- c(2, 19.5, 25.8, 6, 32.8, 50.5, 25.3, 40.2)
description <- c("low", "medium", "medium", "low", "medium", "high", "low", "high")
season <- c("winter", "spring", "winter", "summer", "autumn", "summer", "spring", "summer")
year <- c(2020L, 2019L, 2020L, 2019L, 2020L, 2019L, 2019L, 2020L)
weather_info <- data.frame(
temp = temp,
description = description,
season = season,
year = year,
stringsAsFactors = FALSE
)
tryCatchLog(
weather_info %>% arrange(season, temp)
)
Output :
INFO [2021-01-06 23:13:26] [INFO] as_character() is deprecated as of rlang 0.4.0
Please use vctrs::vec_cast() instead.
Compact call stack:
1 tryCatchLog(arrange(weather_info, season, temp))
2 tryCatchLog.R#326: tryCatch(withCallingHandlers(expr, condition = cond.handler), ..., finally = finally)
3 tryCatchLog.R#326: withCallingHandlers(expr, condition = cond.handler)
4 tryCatchLog.R#326: arrange(weather_info, season, temp)
Full call stack:
1 tryCatchLog(arrange(weather_info, season, temp))
2 tryCatchLog.R#326: tryCatch(withCallingHandlers(expr, condition = cond.handler), ..., finally = finally)
3 tryCatchList(expr, classes, parentenv, handlers)
4 tryCatchLog.R#326: withCallingHandlers(expr, condition = cond.handler)
5 tryCatchLog.R#326: arrange(weather_info, season, temp)
6 arrange.data.frame(weather_info, season, temp)
7 arrange_rows(.data, dots)
8 withCallingHandlers({
transmute(new_data_frame(.data), !!!quosures)
}, error = function(cnd) {
if (inherits(cnd, "dplyr:::mutate_erro
9 transmute(new_data_frame(.data), !!!quosures)
10 transmute.data.frame(new_data_frame(.data), !!!quosures)
11 mutate(.data, ..., .keep = "none")
12 mutate.data.frame(.data, ..., .keep = "none")
13 dplyr_col_modify(.data, cols)
14 dplyr_col_modify.data.frame(.data, cols)
15 as_utf8_character(names2(out))
16 as_character(x)
17 signal_deprecated_cast("as_character")
18 signal_soft_deprecated(env = env, c(sprintf("%s() is deprecated as of rlang 0.4.0", fn), "Please use vctrs::vec_cast() instead."))
19 rlang::signal(msg, "lifecycle_soft_deprecated")
20 cnd_signal(cnd)
21 withRestarts(rlang_muffle = function() NULL, signalCondition(x))
22 withOneRestart(expr, restarts[[1]])
23 doWithOneRestart(return(expr), restart)
24 signalCondition(x)
temp description season year
1 32.8 medium autumn 2020
2 19.5 medium spring 2019
3 25.3 low spring 2019
4 6.0 low summer 2019
5 40.2 high summer 2020
6 50.5 high summer 2019
7 2.0 low winter 2020
8 25.8 medium winter 2020
Expected behaviour:
Do not throw deprecation INFO warnings messages when using arrange function from dplyr .
Postscript :
When using other functions from dplyr package such as select or filter .. , it doesn't throw INFO warnings messages and works fine .
SessionInfo
R version 4.0.3 (2020-10-10)
Platform: x86_64-conda-linux-gnu (64-bit)
Running under: Ubuntu 20.04.1 LTS
attached base packages:
[1] stats graphics grDevices utils datasets methods base
other attached packages:
[1] tryCatchLog_1.2.1 dplyr_1.0.2
loaded via a namespace (and not attached):
[1] rstudioapi_0.13 magrittr_2.0.1 tidyselect_1.1.0 lattice_0.20-41 R6_2.5.0 rlang_0.4.9 fansi_0.4.1
[8] tools_4.0.3 grid_4.0.3 utf8_1.1.4 cli_2.2.0 lambda.r_1.2.4 futile.logger_1.4.3 ellipsis_0.3.1
[15] assertthat_0.2.1 tibble_3.0.4 lifecycle_0.2.0 crayon_1.3.4 Matrix_1.2-18 purrr_0.3.4 formatR_1.7
[22] vctrs_0.3.5 futile.options_1.0.1 glue_1.4.2 compiler_4.0.3 pillar_1.4.7 generics_0.1.0 pkgconfig_2.0.3
Observation:
When using a tryCatchLog or tryCatch function with arrange from dplyr , it throws annoying INFO messages :
library(dplyr)library(tryCatchLog)Output :
Expected behaviour:
Do not throw deprecation INFO warnings messages when using
arrangefunction fromdplyr.Postscript :
When using other functions from
dplyrpackage such as select or filter .. , it doesn't throw INFO warnings messages and works fine .