Skip to content

Commit

Permalink
Merge pull request #176 from atorus-research/devel-lintr
Browse files Browse the repository at this point in the history
Fix lint errors in `devel` that appear with new version of `{lintr}` 📦
  • Loading branch information
elimillera authored Aug 4, 2023
2 parents cf1d62e + 0ee0fe9 commit ffce646
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions tests/testthat/test-type.R
Original file line number Diff line number Diff line change
Expand Up @@ -116,8 +116,8 @@ test_that("xportr_metadata: Var types coerced as expected and raise messages", {

suppressMessages({
(
df4 <- xportr_metadata(df, meta_example)
%>% xportr_type(verbose = "message")
df4 <- xportr_metadata(df, meta_example) %>%
xportr_type(verbose = "message")
) %>%
expect_message("Variable type\\(s\\) in dataframe don't match metadata: `Subj` and `Val`")
})
Expand Down Expand Up @@ -261,8 +261,10 @@ test_that("xportr_type: date variables are not converted to numeric", {
adsl_original$RFICDT <- as.Date(adsl_original$RFICDT)
adsl_original$RFICDTM <- as.POSIXct(adsl_original$RFICDTM)

expect_message(adsl_xpt2 <- adsl_original %>%
xportr_type(metadata), NA)
expect_message(
adsl_xpt2 <- adsl_original %>% xportr_type(metadata),
NA
)

attr(adsl_original, "_xportr.df_arg_") <- "adsl_original"

Expand Down

0 comments on commit ffce646

Please sign in to comment.