-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathscript.R
29 lines (28 loc) · 1.31 KB
/
script.R
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
# refresh packages ======================
remotes::install_github("brandonerose/Rosyverse")
remotes::install_github("brandonerose/RosyDev")
#install.packages("devtools")
#install.packages("usethis")
#install.packages("pkgdown")
Rosyverse::update_all()
.rs.restartR()
# Create =======================================================================
path <- getwd()
bookdown::create_bs4_book(path)
#bookdown::create_gitbook(path)
usethis::use_git()
usethis::use_github()
# Render ==============================================
bookdown::render_book("index.Rmd", "bookdown::bs4_book",output_dir = "docs")
bookdown::render_book("index.Rmd", "bookdown::epub_book",output_dir = "docs")
bookdown::render_book("index.Rmd", "bookdown::pdf_book", output_dir = "docs")
# Serve locally ================================================================
# ?bookdown::serve_book()
bookdown::serve_book(port = 8787, in_session = T,preview = T,output_dir = "docs")
utils::browseURL("http://127.0.0.1:8787")
# Commit =======================================================================
RosyDev::fast_commit()
# Push =========================================================================
usethis:::git_push()
# scrap ========================================================================
utils::browseURL("https://brandonerose.github.io/Data-Pipelines/")