Nothing
provide_parameters
replaces your old
rmarkdown::render(..., params = list(x = x, y = y))
calls with a
simpler rmarkdown::render(..., params = provide_parameters(x, y))
bulk_replace
will change a string across all of a list of provided
files, making it easier to change variables as needed.heddle
now warns you when it doesn't find your placeholder in the
pattern, and lets you replicate patterns without replacement by
providing NA
as argument to ...
export_template
now strips carriage returns from documents by default,
preventing your templates from turning into extremely sparse haikus. To
keep your \r intact, set strip.carriage.returns
to FALSE
heddle
's miniature essay on ...
has moved to a separate sectionmaster
reflecting
the (more) stable development branch and CRAN reflecting the release
version.assemble_draft
has been deprecated in favor of import_draft
, and
will be removed in a future release. import_draft
works exactly the
same as assemble_draft
(in fact, assemble_draft
is just an alias for
import_draft
) and more clearly communicates the relationship with
import_pattern
while also making the distinction from extract_draft
more obvious.extract_pattern
now helps you extract individual patterns from a larger
plaintext file, by indicating via signpost keywords what to importextract_draft
makes it easy to extract multiple patterns from the same
file in a single function call, returning a single draft objectuse_parameters
lets you add parameter boilerplate to your templates
easily, including objects in your YAML header and initializing them
in an R chunk to let you use the same objects in your report that you
used to make itheddle
now can handle patterns vectors with length > 1 (in case you
want to store your pattern as a column in a dataframe next to the data
you're replacing it with)tempdir()
to hopefully pass CRAN checksgoodpractices::gp()
vapply
functions instead of loopsheddle
stops you a second earlier if your strip.whitespace
argument
is badREADME
editscodemeta
assemble_draft()
now wraps an lapply
call and is much more open to
different naming conventionsutils-tidy-eval
, as it doesn't provide much utility and makes
finding functions in heddlr::
harder.?heddlr
DESCRIPTION
README.Rmd
until neededREADME
content in favor of vignettelifecycle
to maturingCII
badge (closes issue #7)DESCRIPTION
DESCRIPTION
to pass R CMD CHECK
tidyverse
links from GitHub customizationsheddle
function, making it easy to swap out placeholder keywords
in piped codemake_template
function, letting you combine heddle
elements
into single exportable templatesAny scripts or data that you put into this service are public.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.