Description Usage Arguments Details Author(s) See Also Examples
Concatenate ScriptOutput objects together.
1 2 |
x |
The first |
... |
Others |
This is a c
method specific for ScriptOutput
objects. All ScriptOutput
objects must use the same language (.R
or .Rmd
). The header and the footer of the first object will be used for all. It is used in vartors by create_script
to create a script for more than one variable.
Joris Muller
The c
function and the ScriptOutput class
.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 | # Create a script output from a description table
myscript <- create_script(variables_description_bad_database)
# But you forget a variable.
# Create it as a VariableDef object
forgoten_var <- vardef(varlabel = "A forgotten variable", rname = "forget", type = "integer")
forgoten_var
# Create a script for it
forgoten_script <- create_script(forgoten_var)
forgoten_script
# Add it to the initial script
my_complete_script <- c(myscript, forgoten_script)
# Watch the result
## Not run:
my_complete_script
# Write the script in a file
write_file(my_complete_script, "my_import_script.R")
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.