targets
packageworcs:::save_data()
_R_CHECK_DEPENDS_ONLY_=true
.add_recipe()
and reproduce()
check_worcs_installation()
no longer throws error for rticles and preregsave_data()
and load_data()
to prevent errors.github_action_reproduce()
vignette("Reproduce")
; the advice to download a ZIP from GitHub is bad
practice, because this ZIP is no longer version controlled with Git.add_endpoint()
, snapshot_endpoints()
, and
check_endpoints()
github_action_check_endpoints()
save_data()
report()
check_worcs_installation()
introduced in version 0.1.9closed_data()
and open_data()
now store factor and ordered value labels in a
YAML filedata_unlabel()
and data_label()
, which respectively coerce
factors to integer, and restore integers to factors using metadata stored in
a YAML fileload_data()
attempts to coerce variable classes using the codebook, and
restores ordered levels from the value_labels YAML file check_worcs_installation()
function to determine whether all non-R-package
dependencies are installed correctlyclosed_data()
and
open_data()
. This allows users to save data in different formats.
The 'load_expression' is stored in the .worcs file, and referenced by
load_data()
.rmarkdown::render()
now return NULL when pandoc is not
availableadd_synthetic()
and notify_synthetic()
closed_data()
no longer wraps errors from the call to synthetic().
Thus, the function call fails with an error if data synthesis fails.closed_data()
now passes formal arguments of synthetic() contained in '...'
on to synthetic()
.synthetic()
now allows 'y' to be referenced in 'predict_expression' when
'model_expression' is set to NULL, thereby enabling bootstrapping.worcs:::col_message()
now renders status messages in
black print instead of colored print when rmarkdown::render()
is on the
callstack. This avoids errors when knitting to PDF.
See https://github.com/rstudio/rmarkdown/issues/1951 for the error
circumvented by this fix.gert
packageadd_preregistration()
to add a preregistration at a later stageopen_data()
and closed_data()
codebook.Rmd from the name of the object supplied to the 'data' argumentopen_data()
and closed_data()
now construct the filenames of the
.csv and codebook.Rmd from the name of the object supplied to the 'data'
argument. This also means that the object will be loaded with the same name
by load_data()
.add_manuscript()
to add a manuscript at a later stageworcs_badge()
; this function did not work as intended. Fixed nowdescriptives()
now returns mean()
instead of sd()
descriptives()
now returns both n and missinggit_user()
from engaging in antisocial behavior, resetting users'
'Git' credentials, by adding a default argument 'overwrite = !has_git_user()'.
By default, the function will do nothing when 'Git' user credentials already
exist.load_data()
to ensure compatibility with the 'RMarkdown' behavior
of running code chunks from the .Rmd file directory, instead of from the
actual working directory.cite_all()
and cite_essential()
to allow escaping literal double @.export_project()
, which now respects the folder structure within a
project, and also supports relative paths to ensure portability, even when
called from a different working than the working directory. Fixing this bug
required changing the working directory before calling zip()
. This change in
working directory is immediately followed by a call to on.exit(setwd(oldwd))
,
in line with CRAN policy.Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.