From b0de221d3510d2e43d8d26ac6dbd49e33561e12b Mon Sep 17 00:00:00 2001 From: Candace Savonen Date: Tue, 28 Sep 2021 12:22:43 -0400 Subject: [PATCH 1/4] Add extra lines to footer --- R/aaa_utils.R | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/R/aaa_utils.R b/R/aaa_utils.R index 0080171..689648e 100644 --- a/R/aaa_utils.R +++ b/R/aaa_utils.R @@ -224,7 +224,7 @@ add_footer <- function(rmd_path, footer_text = NULL) { if (is.null(footer_text)) { stop("Need character string in footer_text argument to append to end of file.") } - + footer_text <- paste0("\n \n", footer_text) write(as.character(footer_text), file = rmd_path, append = TRUE From 41a743fb9629c303265ea08453676d69c3eee786 Mon Sep 17 00:00:00 2001 From: Candace Savonen Date: Tue, 28 Sep 2021 12:27:27 -0400 Subject: [PATCH 2/4] Add message --- R/aaa_utils.R | 2 +- R/bookdown_to_leanpub.R | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/R/aaa_utils.R b/R/aaa_utils.R index 689648e..2afec2f 100644 --- a/R/aaa_utils.R +++ b/R/aaa_utils.R @@ -224,7 +224,7 @@ add_footer <- function(rmd_path, footer_text = NULL) { if (is.null(footer_text)) { stop("Need character string in footer_text argument to append to end of file.") } - footer_text <- paste0("\n \n", footer_text) + footer_text <- paste0("\n", footer_text, collapse = "\n") write(as.character(footer_text), file = rmd_path, append = TRUE diff --git a/R/bookdown_to_leanpub.R b/R/bookdown_to_leanpub.R index 2338a75..cae95d2 100644 --- a/R/bookdown_to_leanpub.R +++ b/R/bookdown_to_leanpub.R @@ -305,6 +305,9 @@ bookdown_to_leanpub <- function(path = ".", "use make_book_txt = TRUE and one will be generated for you.")) } } + message(paste("Leanpub ready files are saved to", + output_dir, + "Go to https://leanpub.com/ to publish them using the GitHub writing mode.") } From 7c4887f45f3bd24b781486973926559920f90655 Mon Sep 17 00:00:00 2001 From: Candace Savonen Date: Tue, 28 Sep 2021 12:30:33 -0400 Subject: [PATCH 3/4] Missing a paranthesis --- R/bookdown_to_leanpub.R | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/R/bookdown_to_leanpub.R b/R/bookdown_to_leanpub.R index cae95d2..7f27b2d 100644 --- a/R/bookdown_to_leanpub.R +++ b/R/bookdown_to_leanpub.R @@ -307,7 +307,7 @@ bookdown_to_leanpub <- function(path = ".", } message(paste("Leanpub ready files are saved to", output_dir, - "Go to https://leanpub.com/ to publish them using the GitHub writing mode.") + "Go to https://leanpub.com/ to publish them using the GitHub writing mode.")) } From ca050ae4c019d91f1e56e2f7457aa8599f427805 Mon Sep 17 00:00:00 2001 From: Candace Savonen Date: Tue, 28 Sep 2021 12:41:54 -0400 Subject: [PATCH 4/4] Add package down site --- .Rbuildignore | 1 + .gitignore | 1 + _pkgdown.yml | 0 3 files changed, 2 insertions(+) create mode 100644 _pkgdown.yml diff --git a/.Rbuildignore b/.Rbuildignore index eaafb10..ab9ac70 100644 --- a/.Rbuildignore +++ b/.Rbuildignore @@ -19,3 +19,4 @@ vignettes/.httr-oauth$ ^R/youtube$ ^run_test\.R$ ^\.github$ +^pkgdown$ diff --git a/.gitignore b/.gitignore index 72ded39..732e061 100644 --- a/.gitignore +++ b/.gitignore @@ -9,3 +9,4 @@ inst/doc .httr-oauth tests/testthat/googlesheets_token.rds run_test.R +docs diff --git a/_pkgdown.yml b/_pkgdown.yml new file mode 100644 index 0000000..e69de29