Skip to content

Commit

Permalink
#2014 - run required tasks for PR
Browse files Browse the repository at this point in the history
  • Loading branch information
sophie-gem committed Jul 28, 2023
1 parent ad99808 commit cde8c2e
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 7 deletions.
4 changes: 2 additions & 2 deletions .Rprofile
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# Set renv profile base on R version.
renv_profile <- paste(R.version$major, substr(R.version$minor, 1, 1), sep = ".")
if (file.exists("./renv/profile")) {
message("Using renv profile from `renv/profile` file.")
message("Using renv profile from `renv/profile` file.")
} else if (renv_profile %in% c("4.1", "4.2", "4.3")) {
message("Set renv profile to `", renv_profile, "`")
Sys.setenv("RENV_PROFILE" = renv_profile)
Expand All @@ -11,6 +11,6 @@ if (file.exists("./renv/profile")) {

if ((Sys.getenv("GITHUB_ACTIONS") != "") || (Sys.getenv("DOCKER_CONTAINER_CONTEXT") != "")) {
options(repos = c(CRAN = "https://cran.rstudio.com"))
Sys.setenv(RENV_AUTOLOADER_ENABLED=FALSE)
Sys.setenv(RENV_AUTOLOADER_ENABLED = FALSE)
}
source("renv/activate.R")
1 change: 0 additions & 1 deletion R/derive_var_shift.R
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,6 @@ derive_var_shift <- function(dataset,
na_val,
missing_value = "NULL",
sep_val = " to ") {

### BEGIN DEPRECATION
if (!missing(na_val)) {
deprecate_warn("0.12.0", "derive_var_shift(na_val = )", "derive_var_shift(missing_value = )")
Expand Down
9 changes: 6 additions & 3 deletions man/derive_var_shift.Rd

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

1 change: 0 additions & 1 deletion tests/testthat/test-derive_var_shift.R
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,6 @@ test_that("derive_var_shift Test 4: Shift with user-specified missing_value and

## Test 5: Test deprecation warning of na_val argument ----
test_that("derive_var_shift Test 5: Test deprecation warning of na_val argument", {

input <- tibble::tribble(
~USUBJID, ~PARAMCD, ~AVAL, ~ABLFL, ~BNRIND, ~ANRIND,
"P01", "ALB", 33, "Y", "LOW", "LOW",
Expand Down

0 comments on commit cde8c2e

Please sign in to comment.