Split outputModel() into two new functions: outputParamTab() for generating tables (measurement and structural); outputParamFig() for generating path diagrams.
Added the gtTab argument to outputParamTab() to control if the desired table is to be wrapped in gt::gt(), defaulting to FALSE.
Implemented writeTo and fileName options to outputParamTab() and outputParamFig(), defaulting to NULL.
Added deprecation warning to outputModel() using lifecycle::deprecate_warn() to guide users towards the new functions.
Exported outputParamTab() and outputParamFig() to the NAMESPACE.
Notes:
The approach taken involved incorporating gtTab into the dySEM:::MakeTable() helper function.
If users specify tabletype = "both" in outputParamTab(), the function will stash and return the generated table objects in a list.
Currently receiving zero complaints from devtools::check()
Addresses Issue #66
Summary:
outputModel()
into two new functions:outputParamTab()
for generating tables (measurement and structural);outputParamFig()
for generating path diagrams.gtTab
argument tooutputParamTab()
to control if the desired table is to be wrapped ingt::gt()
, defaulting toFALSE
.writeTo
andfileName
options tooutputParamTab()
andoutputParamFig()
, defaulting toNULL
.outputModel()
usinglifecycle::deprecate_warn()
to guide users towards the new functions.outputParamTab()
andoutputParamFig()
to the NAMESPACE.Notes:
gtTab
into thedySEM:::MakeTable()
helper function.tabletype = "both"
inoutputParamTab()
, the function will stash and return the generated table objects in a list.devtools::check()