Closed imazubi closed 3 years ago
I looked into your code and error message is correct -> you cannot submit code on both dataset and data level because then it's impossible to specify which one should go first while creating final output to ShowRCode. Note that specifying vars
arguments is nothing more that adding some code upfront.
> dataset("iris", iris, code = "iris", vars = list(x = 1))$get_code() %>% cat()
x <- 1
iris
Combining above with the code on data level (code = get_code("app.R",exclude_comments = TRUE, read_sources = TRUE)
) we have such situation and here comes the error message.
To me all is good here.
@pawelru but where I am introducing code at cdisc_dataset
level?
So I am not allowed to use vars
argument either?
Basically vars
are being translated into the code so yes you are indirectly providing a code. Actually I don't see the need to use this arg if you are providing an overall code. Can you came up with some meaningful minimal example when it would be needed?
@pawelru this is what I am obtaining with tm_variable_browser
if I do not pass the character variable names with var
argument.
above looks like this is a separate issue already reported and being worked on -> https://github.com/insightsengineering/coredev-tasks/issues/359
Can you please fix the dates column and check again?
The tmg issue has been resolved. Can you please check now if you still have the error?
Sorry for this late reply @pawelru. I will try in tomorrow's UAT release efficacy app as the correction should be available there then.
@pawelru it is working properly now under UAT_2021_10_06
.
ok closing this then
When testing efficacy app, the following error appears when I add
vars
argument incdisc_dataset(dataname = "ADSL", x = ADSL, vars = list(char_vars_asl = char_vars_asl)
.I am just using
code
in 'cdisc_data'.Error: 'code' argument should be specified only in the 'cdisc_data' or in 'cdisc_dataset' but not in both
App's code: