knitr::opts_chunk$set( collapse = TRUE, comment = "#>", fig.path = "man/figures/README-", out.width = "100%" )
The goal of journalr is to create markdown templates for journalling
You can install the development version from GitHub with:
# install.packages("devtools") devtools::install_github("andrewjpfeiffer/journalr")
journalr consists of two primary functions journal_freeform()
and journal_tactics()
.
journal_freeform()
is used to create simple freeform journalling templates:
example_freeform <- journalr::journal_freeform(as.Date("2019-01-01"), as.Date("2019-02-28")) example_freeform$filename[1] writeLines(substr(example_freeform$file_contents[1], 1, 64)) example_freeform$filename[3] writeLines(example_freeform$file_contents[3])
journal_tactics()
is used to create journalling templates for tactics. This terminology is taken from 12 Week Year by Brian Moran, who recommends keeping score of how well you perform at tactics that contribute to higher-level goals.
journal_tactics()
has three arguments:
*
, -
or +
) is read as a tactic.Each row of the output is a template file for each week, and the last row is a template file for weekly reflections.
template_in <- "* Walk 10K steps each day\n* Read 30 minutes each day" example_tactics <- journalr::journal_tactics(template_in, as.Date("2019-10-13"), as.Date("2019-10-26")) example_tactics$filename[1] writeLines(substr(example_tactics$file_contents[1], 1, 155)) example_tactics$filename[3] writeLines(substr(example_tactics$file_contents[3], 1, 242))
The shiny application for this package can be found at https://andrewjpfeiffer.shinyapps.io/journals. To use the application:
Freeform
or Tactics
)Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.