You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When I change the input ADSL that contains only one variable STUDYID, the message All variables in specification file are in dataset still be output.
I am not sure I understand right for this message, it will mean that we have all necessary variables defined in the ADSL variable metadata specification and only be output when the input data frame have these variables
Reproducible Example
library(dplyr)
#>
#> Attaching package: 'dplyr'
#> The following objects are masked from 'package:stats':
#>
#> filter, lag
#> The following objects are masked from 'package:base':
#>
#> intersect, setdiff, setequal, union
library(xportr)
data("adsl_xportr")
ADSL <- adsl_xportr
spec_path <- system.file(file.path("specs", "ADaM_spec.xlsx"), package = "xportr")
var_spec <- readxl::read_xlsx(spec_path, sheet = "Variables") %>%
dplyr::rename(type = "Data Type") %>%
dplyr::rename_with(tolower)
dataset_spec <- readxl::read_xlsx(spec_path, sheet = "Datasets") %>%
dplyr::rename(label = "Description") %>%
dplyr::rename_with(tolower)
ADSL %>% dplyr::select(STUDYID) %>%
xportr_metadata(var_spec, "ADSL") %>%
xportr_type(verbose = "warn") %>%
xportr_length(verbose = "warn") %>%
xportr_label(verbose = "warn") %>%
xportr_order(verbose = "warn") %>%
xportr_format() %>%
xportr_df_label(dataset_spec, "ADSL") %>%
xportr_write("adsl.xpt")
#>
#> ── All variables in specification file are in dataset ──
#>
#> ── All variables in dataset are ordered ──
#>
Dear developer,
When I change the input
ADSL
that contains only one variableSTUDYID
, the messageAll variables in specification file are in dataset
still be output.I am not sure I understand right for this message, it will mean that we have all necessary variables defined in the ADSL variable metadata specification and only be output when the input data frame have these variables
Reproducible Example
Session Information
The text was updated successfully, but these errors were encountered: