/
Rnssp_rstudio_addins.Rmd
147 lines (90 loc) · 3.37 KB
/
Rnssp_rstudio_addins.Rmd
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
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
---
title: "Using Rnssp RStudio Addins"
author:
output:
rmarkdown::html_document:
toc: true
toc_float:
toc_collapsed: true
toc_depth: 2
number_sections: true
theme: readable
vignette: >
%\VignetteIndexEntry{Using Rnssp RStudio Addins}
%\VignetteEngine{knitr::rmarkdown}
%\VignetteEncoding{UTF-8}
---
```{r global_options, include = FALSE}
knitr::opts_chunk$set(
message = FALSE,
warning = FALSE,
comment = "#>",
collapse = TRUE,
cache = FALSE
)
```
<style>
img {
max-width: 700px;
}
</style>
## Launch the addin {-}
In RStudio, you can use the *Addins* menu:
![](assets/launch-addin.png)
## Create a User Profile with the GUI {-}
Users may create and save a profile via the *Create User Profile (GUI)* addin menu as shown below:
![](assets/create_user_profile_gui.gif)
Or in the R console:
```{r, eval=FALSE}
Rnssp:::create_user_profile_gui()
```
## Generate a Skeleton to create a User Profile {-}
Alternatively, users may generate a code skeleton in the R console from the *Create User Profile (code skeleton)* addin as demonstrated below:
![](assets/create_user_profile_skeleton.gif)
Or in the R console:
```{r, eval=FALSE}
Rnssp:::create_user_profile()
```
## Run Rnssp shiny apps {-}
Rnssp Shiny Apps are custom-built applications for the `Rnssp` community of users, providing on-demand tools to enhance user experiences and streamline workflows.
Starting from `Rnssp v0.3.0`, RStudio users may run Rnssp shiny apps via Rnssp Addins:
![](assets/Run_Rnssp_shiny_apps.gif)
Or in the R console:
```{r, eval=FALSE}
Rnssp:::run_app_gui()
```
## Listing Available Rnssp templates {-}
Users may check the list of all the currently available [Rnssp R Markdown templates](https://cdcgov.github.io/Rnssp-rmd-templates) with the *List Rnssp Templates* addin:
![](assets/list_templates_addins.gif)
Or in the R console:
```{r, eval=FALSE}
Rnssp:::list_templates()
```
## Add/Update Rnssp Templates {-}
A unique feature of the `Rnssp` package is the ability to add R Markdown templates dynamically to an existing installation of the package. The National Syndromic Surveillance Program (NSSP), in collaboration with its Community of Practice (CoP), develops various R Markdown templates which can be dynamically added or updated via with the *Add/Update Rnssp Templates* addin:
![](assets/add_update_templates.gif)
Or in the R console:
```{r, eval=FALSE}
Rnssp:::add_rmd_template_gui()
```
## Remove Rnssp Templates {-}
When one or more Rnssp templates are no longer needed, they can be removed via the *Remove Rnssp Templates* addin:
![](assets/remove_templates.gif)
Or in the R console:
```{r, eval=FALSE}
Rnssp:::remove_rmd_template_gui()
```
## Accessing Package and Templates Documentations {-}
The *Rnssp Templates Documentation* and the *Rnssp Documentation* addins are provided to allow users to easily access respectively, the Rnssp R Markdown templates and the Rnssp package online documentation.
### Rnssp R Markdown Templates Documentation Addin {-}
![](assets/templates_doc.png)
Or in the R console:
```{r, eval=FALSE}
Rnssp:::rnssp_templates_manual()
```
### Rnssp Package Documentation {-}
![](assets/package_doc.png)
Or in the R console:
```{r, eval=FALSE}
Rnssp:::rnssp_manual()
```