use_tabde()
is designed to be used during package development. It saves
table_designs
to the inst/table_design/
folder of the current
package (and creates this folder if it doesn't exist).
use_tabde_fwf()
and use_tabde_sql()
are convenience functions that do the
same and add the respective dummy columns.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 | use_tabde(
x,
file = { if (assert_namespace("rprojroot"))
rprojroot::find_package_root_file("inst", "table_design",
paste0(deparse(substitute(x)), ".csv")) else stop("argument 'file' is missing") },
overwrite = FALSE
)
use_tabde_fwf(
x,
file = { if (assert_namespace("rprojroot"))
rprojroot::find_package_root_file("inst", "table_design",
paste0(deparse(substitute(x)), ".csv")) else stop("argument 'file' is missing") },
overwrite = FALSE
)
use_tabde_sql(
x,
file = { if (assert_namespace("rprojroot"))
rprojroot::find_package_root_file("inst", "table_design",
paste0(deparse(substitute(x)), ".csv")) else stop("argument 'file' is missing") },
overwrite = FALSE
)
|
x |
a |
file |
scalar |
overwrite |
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.