knitr::opts_chunk$set( collapse = TRUE, comment = "#>", fig.path = "man/figures/README-", out.width = "100%" )
Efficientize writing and programming
in writing_help.R
formalize_writing()
appliesreplace_in_selective_text_for_all_entries_in_all_dicts()
tocapitalize_sentences()
tocapitalize_headings()
toYou can supply the source file name only to change the source file directly, e.g., formalize_writing("informal_paper.Rmd")
or in addition supply a destination file name to create a new file, e.g.,
formalize_writing("informal_paper.Rmd", "formal_paper.Rmd")
for a demo see informal_paper.Rmd see formal_paper.Rmd
in exp_repo.R
add_papers()
here is how i use all of these functions https://github.com/xf15/efficientize_exp_repo_template/blob/main/manuscript/render_manuscript.R
usethis::use_rmarkdown_template(template_name = "scratch", template_description = "for exploration") usethis::use_rmarkdown_template(template_name = "slides", template_description = "template for slides") usethis::use_rmarkdown_template(template_name = "manuscript", template_description = "template for manuscript")
https://github.com/xf15/efficientize/blob/main/inst/rmarkdown/templates/scratch/skeleton/skeleton.Rmd
https://github.com/xf15/efficientize/blob/main/inst/rmarkdown/templates/slides/skeleton/skeleton.Rmd
https://github.com/xf15/efficientize/blob/main/inst/rmarkdown/templates/manuscript/skeleton/skeleton.Rmd
you want to define your own dict
in /data-raw
you need to sync your own zotero bib to that in /inst/files_for_efficientize_exp_repo_template
you need to ln
your own bash files to those in /inst/files_for_unrelated_housekeeping
so fork, clone
in your text editor, throughout this project, replace
/Users/xzfang/Github/efficientize/
with your repo path
devtools::install()
as all those customized files mentioned above get updated, this pkg need to be reinstalled
do
(base) Xinzhus-MacBook-Pro:efficientize xzfang$ Rscript update.R
which
rmarkdown::render("README.Rmd")
which
source("data-raw/create_dict.R") devtools::install()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.