Exports Xpose variable definitions to a file from an Xpose data object.
Source:R/export.variable.definitions.R
export.variable.definitions.RdThis function exports variable definitions for a specified Xpose data object to a file.
Details
This function exports variable definitions (contents of object@Prefs@Xvardef)
for a given xpose.data object to a file, typically
'xpose.vardefs.ini'. Note that file format is not the same as used for
graphics settings. It is a wrapper for the R function dput.
See also
import.variable.definitions,
xpose.prefs-class dput
Other data functions:
add_transformed_columns,
change_graphical_parameters,
change_misc_parameters,
compute.cwres(),
data.checkout(),
data_extract_or_assign,
db.names(),
export.graph.par(),
import.graph.par(),
import.variable.definitions(),
make.sb.data(),
nsim(),
par_cov_summary,
read.TTE.sim.data(),
read.nm.tables(),
read_NM_output,
read_nm_table(),
simprazExample(),
tabulate.parameters(),
xlabel(),
xpose.data,
xpose.print(),
xpose4-package,
xsubset()
Examples
od = setwd(tempdir()) # move to a temp directory
(cur.files <- dir()) # current files in temp directory
#> [1] "bslib-1ee912de293daf57e3d290381475f8e1"
#> [2] "downlit"
export.variable.definitions(simpraz.xpdb,file="xpose.vardefs.ini")
(new.files <- dir()[!(dir() %in% cur.files)]) # what files are new here?
#> [1] "xpose.vardefs.ini"
file.remove(new.files) # remove this file
#> [1] TRUE
setwd(od) # restore working directory