-
Notifications
You must be signed in to change notification settings - Fork 3
/
render.R
107 lines (74 loc) · 3.81 KB
/
render.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
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
# Load Libraries ----------------------------------------------------------
library("rmarkdown")
library("knitr")
library("bookdown")
# Identify Packages for DESCRIPTION file ----------------------------------
packagesUsed <- renv::dependencies()
unique(packagesUsed$Package)
# Render Book -------------------------------------------------------------
render_book(input = "index.Rmd")
# Set Option to Force Update When Publishing ------------------------------
options(rsconnect.force.update.apps = TRUE)
# Publish Book without Rendering ------------------------------------------
bookdown::publish_book(name = "psychological_assessment",
account = "isaactpetersen",
render = "none")
# STOP RUN HERE -----------------------------------------------------------
# Render and Publish Book -------------------------------------------------
bookdown::publish_book(name = "psychological_assessment",
account = "isaactpetersen",
render = "local")
# Render PDF --------------------------------------------------------------
render_book(input = "index.Rmd",
output_format = "bookdown::pdf_book")
# Render E-Book -----------------------------------------------------------
render_book(input = "index.Rmd",
output_format = "bookdown::epub_book")
# Render All Formats (HTML, PDF, and E-Book) ------------------------------
render_book(input = "index.Rmd",
output_format = "all")
# Render All Formats (HTML, PDF, and E-Book) and Publish Book -------------
render_book(input = "index.Rmd",
output_format = "all")
options(rsconnect.force.update.apps = TRUE)
bookdown::publish_book(name = "psychological_assessment",
account = "isaactpetersen",
render = "none")
# Book Access -------------------------------------------------------------
#https://bookdown.org/connect/#/apps/6234/access
#https://bookdown.org/isaactpetersen/psychological_assessment/
# Serve Book --------------------------------------------------------------
serve_book(preview = TRUE)
#To stop the server, run servr::daemon_stop(1) or restart your R session
# Preview Individual Chapters ---------------------------------------------
preview_chapter(input = "index.Rmd")
preview_chapter(input = "01-Intro.Rmd")
preview_chapter(input = "02-Reliability.Rmd")
preview_chapter(input = "03-Validity.Rmd")
preview_chapter(input = "04-Structural-Equation-Modeling.Rmd")
preview_chapter(input = "05-Item-Response-Theory.Rmd")
preview_chapter(input = "06-Prediction.Rmd")
preview_chapter(input = "07-Test-Bias.Rmd")
preview_chapter(input = "08-Factor-Analysis-and-Principal-Component-Analysis.Rmd")
preview_chapter(input = "09-Computerized-Adaptive-Testing.Rmd")
preview_chapter(input = "10-Reproducibility.Rmd")
preview_chapter(input = "11-References.Rmd")
# Preview Multiple Chapters -----------------------------------------------
preview_chapter(input = c("index.Rmd",
"01-Intro.Rmd",
"02-Reliability.Rmd",
"03-Validity.Rmd",
"05-Item-Response-Theory.Rmd",
"06-Prediction.Rmd",
"08-Factor-Analysis-and-Principal-Component-Analysis.Rmd",
"10-Reproducibility.Rmd",
"11-References.Rmd"))
preview_chapter(input = c("index.Rmd",
"01-Intro.Rmd",
"02-Reliability.Rmd",
"03-Validity.Rmd",
"04-Structural-Equation-Modeling.Rmd",
"05-Item-Response-Theory.Rmd",
"06-Prediction.Rmd",
"10-Reproducibility.Rmd",
"11-References.Rmd"))