From ad6a15bf39774c0a7bd81499b575516afe4fd4d8 Mon Sep 17 00:00:00 2001 From: Antonio Miguel de Jesus Domingues Date: Mon, 28 Sep 2020 16:16:47 +0200 Subject: [PATCH] Hack to avoid masked functions from purrr --- DESCRIPTION | 2 +- R/package_helpers.R | 5 +++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/DESCRIPTION b/DESCRIPTION index 9598ab1..f9151f9 100644 --- a/DESCRIPTION +++ b/DESCRIPTION @@ -1,7 +1,7 @@ Package: corescf Title: Collection of Useful CSF Functions Description: Collection of useful custom functions as part of the CSF workflows. -Version: 0.8.2.6000 +Version: 0.8.2.7000 Authors@R: c( person(given = "António", family = "Domingues", diff --git a/R/package_helpers.R b/R/package_helpers.R index 9eea025..3df0597 100644 --- a/R/package_helpers.R +++ b/R/package_helpers.R @@ -138,8 +138,9 @@ load_all <- function(verbose = FALSE) { load_pack("DT") ## replace masked functions with those of corescf - set_names <- corescf::set_names - frame_data <- corescf::frame_data + assign("set_names", corescf::set_names, envir = .GlobalEnv) + assign("frame_data", corescf::frame_data, envir = .GlobalEnv) + } -- GitLab