-
Notifications
You must be signed in to change notification settings - Fork 136
/
Copy pathindex.html
311 lines (285 loc) · 30.7 KB
/
index.html
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
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
<!DOCTYPE html>
<!-- Generated by pkgdown: do not edit by hand --><html lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Business Analytics using R and Shiny • radiant</title>
<!-- jquery --><script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.4.1/jquery.min.js" integrity="sha256-CSXorXvZcTkaix6Yvo6HppcZGetbYMGWSFlBw8HfCJo=" crossorigin="anonymous"></script><!-- Bootstrap --><link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/3.4.1/css/bootstrap.min.css" integrity="sha256-bZLfwXAP04zRMK2BjiO8iu9pf4FbLqX6zitd+tIvLhE=" crossorigin="anonymous">
<script src="https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/3.4.1/js/bootstrap.min.js" integrity="sha256-nuL8/2cJ5NDSSwnKD8VqreErSWHtnEP9E7AySL+1ev4=" crossorigin="anonymous"></script><!-- bootstrap-toc --><link rel="stylesheet" href="bootstrap-toc.css">
<script src="bootstrap-toc.js"></script><!-- Font Awesome icons --><link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.12.1/css/all.min.css" integrity="sha256-mmgLkCYLUQbXn0B1SRqzHar6dCnv9oZFPEC1g1cwlkk=" crossorigin="anonymous">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.12.1/css/v4-shims.min.css" integrity="sha256-wZjR52fzng1pJHwx4aV2AO3yyTOXrcDW7jBpJtTwVxw=" crossorigin="anonymous">
<!-- clipboard.js --><script src="https://cdnjs.cloudflare.com/ajax/libs/clipboard.js/2.0.6/clipboard.min.js" integrity="sha256-inc5kl9MA1hkeYUt+EC3BhlIgyp/2jDIyBLS6k3UxPI=" crossorigin="anonymous"></script><!-- headroom.js --><script src="https://cdnjs.cloudflare.com/ajax/libs/headroom/0.11.0/headroom.min.js" integrity="sha256-AsUX4SJE1+yuDu5+mAVzJbuYNPHj/WroHuZ8Ir/CkE0=" crossorigin="anonymous"></script><script src="https://cdnjs.cloudflare.com/ajax/libs/headroom/0.11.0/jQuery.headroom.min.js" integrity="sha256-ZX/yNShbjqsohH1k95liqY9Gd8uOiE1S4vZc+9KQ1K4=" crossorigin="anonymous"></script><!-- pkgdown --><link href="pkgdown.css" rel="stylesheet">
<script src="pkgdown.js"></script><meta property="og:title" content="Business Analytics using R and Shiny">
<meta property="og:description" content="A platform-independent browser-based interface for business
analytics in R, based on the shiny package. The application combines the
functionality of radiant.data, radiant.design, radiant.basics,
radiant.model, and radiant.multivariate.">
<!-- mathjax --><script src="https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.5/MathJax.js" integrity="sha256-nvJJv9wWKEm88qvoQl9ekL2J+k/RWIsaSScxxlsrv8k=" crossorigin="anonymous"></script><script src="https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.5/config/TeX-AMS-MML_HTMLorMML.js" integrity="sha256-84DKXVJXs0/F8OTMzX4UR909+jtl4G7SPypPavF+GfA=" crossorigin="anonymous"></script><!--[if lt IE 9]>
<script src="https://oss.maxcdn.com/html5shiv/3.7.3/html5shiv.min.js"></script>
<script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script>
<![endif]-->
</head>
<body data-spy="scroll" data-target="#toc">
<div class="container template-home">
<header><div class="navbar navbar-default navbar-fixed-top" role="navigation">
<div class="container">
<div class="navbar-header">
<button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#navbar" aria-expanded="false">
<span class="sr-only">Toggle navigation</span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
<span class="navbar-brand">
<a class="navbar-link" href="index.html">radiant</a>
<span class="version label label-default" data-toggle="tooltip" data-placement="bottom" title="">1.6.0</span>
</span>
</div>
<div id="navbar" class="navbar-collapse collapse">
<ul class="nav navbar-nav">
<li>
<a href="reference/index.html">Reference</a>
</li>
<li class="dropdown">
<a href="#" class="dropdown-toggle" data-toggle="dropdown" role="button" data-bs-toggle="dropdown" aria-expanded="false">
Articles
<span class="caret"></span>
</a>
<ul class="dropdown-menu" role="menu">
<li>
<a href="articles/programming.html">Programming with Radiant</a>
</li>
</ul>
</li>
<li>
<a href="news/index.html">Changelog</a>
</li>
</ul>
<ul class="nav navbar-nav navbar-right">
<li>
<a href="https://github.com/radiant-rstats/radiant/" class="external-link">
<span class="fab fa-github fa-lg"></span>
</a>
</li>
</ul>
</div>
<!--/.nav-collapse -->
</div>
<!--/.container -->
</div>
<!--/.navbar -->
</header><div class="row">
<div class="contents col-md-9">
<div class="section level1">
<div class="page-header"><h1 id="radiant---business-analytics-using-r-and-shiny">Radiant - Business analytics using R and Shiny<a class="anchor" aria-label="anchor" href="#radiant---business-analytics-using-r-and-shiny"></a>
</h1></div>
<!-- [](https://travis-ci.org/radiant-rstats/radiant) -->
<!-- [](https://coveralls.io/r/vnijs/radiant?branch=master) -->
<p><a href="https://CRAN.R-project.org/package=radiant" class="external-link"><img src="http://www.r-pkg.org/badges/version/radiant" alt="CRAN_Status_Badge"></a></p>
<p>Radiant is an open-source platform-independent browser-based interface for business analytics in <a href="https://www.r-project.org/" class="external-link">R</a>. The application is based on the <a href="https://shiny.posit.co/" class="external-link">Shiny</a> package and can be run locally or on a server. Radiant was developed by <a href="https://rady.ucsd.edu/faculty-research/faculty/vincent-nijs.html" target="\_blank" class="external-link">Vincent Nijs</a>. Please use the issue tracker on GitHub to suggest enhancements or report problems: <a href="https://github.com/radiant-rstats/radiant/issues" class="external-link uri">https://github.com/radiant-rstats/radiant/issues</a>. For other questions and comments please use <a href="mailto:radiant@rady.ucsd.edu" class="email">radiant@rady.ucsd.edu</a>.</p>
<div class="section level2">
<h2 id="key-features">Key features<a class="anchor" aria-label="anchor" href="#key-features"></a>
</h2>
<ul>
<li>Explore: Quickly and easily summarize, visualize, and analyze your data</li>
<li>Cross-platform: It runs in a browser on Windows, Mac, and Linux</li>
<li>Reproducible: Recreate results and share work with others as a state file or an <a href="https://rmarkdown.rstudio.com/" class="external-link">Rmarkdown</a> report</li>
<li>Programming: Integrate Radiant’s analysis functions with your own R-code</li>
<li>Context: Data and examples focus on business applications</li>
</ul>
<iframe width="640" height="375" src="https://www.youtube.com/embed/7L3hDpLw53I" frameborder="0" allowfullscreen>
</iframe>
<div class="section level4">
<h4 id="playlists">Playlists<a class="anchor" aria-label="anchor" href="#playlists"></a>
</h4>
<p>There are two youtube playlists with video tutorials. The first provides a general introduction to key features in Radiant. The second covers topics relevant in a course on business analytics (i.e., Probability, Decision Analysis, Hypothesis Testing, Linear Regression, and Simulation).</p>
<ul>
<li><a href="https://www.youtube.com/playlist?list=PLNhtaetb48EedDmWPUqytnQv-qxmCGtxi" target="_blank" class="external-link">Introduction to Radiant</a></li>
<li><a href="https://www.youtube.com/playlist?list=PLNhtaetb48EdKRIY7MewCyvb_1x7dV3xw" target="_blank" class="external-link">Radiant Tutorial Series</a></li>
</ul>
</div>
<div class="section level4">
<h4 id="explore">Explore<a class="anchor" aria-label="anchor" href="#explore"></a>
</h4>
<p>Radiant is interactive. Results update immediately when inputs are changed (i.e., no separate dialog boxes) and/or when a button is pressed (e.g., <code>Estimate</code> in <em>Model > Estimate > Logistic regression (GLM)</em>). This facilitates rapid exploration and understanding of the data.</p>
</div>
<div class="section level4">
<h4 id="cross-platform">Cross-platform<a class="anchor" aria-label="anchor" href="#cross-platform"></a>
</h4>
<p>Radiant works on Windows, Mac, or Linux. It can run without an Internet connection and no data will leave your computer. You can also run the app as a web application on a server.</p>
</div>
<div class="section level4">
<h4 id="reproducible">Reproducible<a class="anchor" aria-label="anchor" href="#reproducible"></a>
</h4>
<p>To conduct high-quality analysis, simply saving output is not enough. You need the ability to reproduce results for the same data and/or when new data become available. Moreover, others may want to review your analysis and results. Save and load the state of the application to continue your work at a later time or on another computer. Share state files with others and create reproducible reports using <a href="https://rmarkdown.rstudio.com/" class="external-link">Rmarkdown</a>. See also the section on <code>Saving and loading state</code> below</p>
<p>If you are using Radiant on a server you can even share the URL (include the SSUID) with others so they can see what you are working on. Thanks for this feature go to <a href="https://github.com/jcheng5" class="external-link">Joe Cheng</a>.</p>
</div>
<div class="section level4">
<h4 id="programming">Programming<a class="anchor" aria-label="anchor" href="#programming"></a>
</h4>
<p>Although Radiant’s web-interface can handle quite a few data and analysis tasks, you may prefer to write your own R-code. Radiant provides a bridge to programming in R(studio) by exporting the functions used for analysis (i.e., you can conduct your analysis using the Radiant web-interface or by calling Radiant’s functions directly from R-code). For more information about programming with Radiant see the <a href="https://radiant-rstats.github.io/docs/programming.html" class="external-link">programming</a> page on the documentation site.</p>
</div>
<div class="section level4">
<h4 id="context">Context<a class="anchor" aria-label="anchor" href="#context"></a>
</h4>
<p>Radiant focuses on business data and decisions. It offers tools, examples, and documentation relevant for that context, effectively reducing the business analytics learning curve.</p>
</div>
</div>
<div class="section level2">
<h2 id="how-to-install-radiant">How to install Radiant<a class="anchor" aria-label="anchor" href="#how-to-install-radiant"></a>
</h2>
<ul>
<li>Required: <a href="https://cran.r-project.org/" class="external-link">R</a> version 4.0.0 or later</li>
<li>Required: <a href="https://posit.co/download/rstudio-server/" class="external-link">Rstudio</a>
</li>
</ul>
<p>In Rstudio you can start and update Radiant through the <code>Addins</code> menu at the top of the screen. To install the latest version of Radiant for Windows or Mac, with complete documentation for off-line access, open R(studio) and copy-and-paste the command below:</p>
<div class="sourceCode" id="cb1"><pre class="downlit sourceCode r">
<code class="sourceCode R"><span><span class="fu"><a href="https://rdrr.io/r/base/options.html" class="external-link">options</a></span><span class="op">(</span>repos <span class="op">=</span> <span class="fu"><a href="https://rdrr.io/r/base/c.html" class="external-link">c</a></span><span class="op">(</span>RSM <span class="op">=</span> <span class="st">"https://radiant-rstats.github.io/minicran"</span>, CRAN <span class="op">=</span> <span class="st">"https://cloud.r-project.org"</span><span class="op">)</span><span class="op">)</span></span>
<span><span class="fu"><a href="https://rdrr.io/r/utils/install.packages.html" class="external-link">install.packages</a></span><span class="op">(</span><span class="st">"radiant"</span><span class="op">)</span></span></code></pre></div>
<p>Once all packages are installed, select <code>Start radiant</code> from the <code>Addins</code> menu in Rstudio or use the command below to launch the app:</p>
<div class="sourceCode" id="cb2"><pre class="downlit sourceCode r">
<code class="sourceCode R"><span><span class="fu">radiant</span><span class="fu">::</span><span class="fu"><a href="reference/radiant.html">radiant</a></span><span class="op">(</span><span class="op">)</span></span></code></pre></div>
<p>To launch Radiant in Rstudio’s viewer pane use the command below:</p>
<div class="sourceCode" id="cb3"><pre class="downlit sourceCode r">
<code class="sourceCode R"><span><span class="fu">radiant</span><span class="fu">::</span><span class="fu"><a href="reference/radiant_viewer.html">radiant_viewer</a></span><span class="op">(</span><span class="op">)</span></span></code></pre></div>
<p>To launch Radiant in an Rstudio Window use the command below:</p>
<div class="sourceCode" id="cb4"><pre class="downlit sourceCode r">
<code class="sourceCode R"><span><span class="fu">radiant</span><span class="fu">::</span><span class="fu"><a href="reference/radiant_window.html">radiant_window</a></span><span class="op">(</span><span class="op">)</span></span></code></pre></div>
<p>To easily update Radiant and the required packages, install the <code>radiant.update</code> package using:</p>
<div class="sourceCode" id="cb5"><pre class="downlit sourceCode r">
<code class="sourceCode R"><span><span class="fu"><a href="https://rdrr.io/r/base/options.html" class="external-link">options</a></span><span class="op">(</span>repos <span class="op">=</span> <span class="fu"><a href="https://rdrr.io/r/base/c.html" class="external-link">c</a></span><span class="op">(</span>RSM <span class="op">=</span> <span class="st">"https://radiant-rstats.github.io/minicran"</span>, CRAN <span class="op">=</span> <span class="st">"https://cloud.r-project.org"</span><span class="op">)</span><span class="op">)</span></span>
<span><span class="fu"><a href="https://rdrr.io/r/utils/install.packages.html" class="external-link">install.packages</a></span><span class="op">(</span><span class="st">"remotes"</span><span class="op">)</span></span>
<span><span class="fu">remotes</span><span class="fu">::</span><span class="fu"><a href="https://remotes.r-lib.org/reference/install_github.html" class="external-link">install_github</a></span><span class="op">(</span><span class="st">"radiant-rstats/radiant.update"</span>, upgrade <span class="op">=</span> <span class="st">"never"</span><span class="op">)</span></span></code></pre></div>
<p>Then select <code>Update radiant</code> from the <code>Addins</code> menu in Rstudio or use the command below:</p>
<div class="sourceCode" id="cb6"><pre class="downlit sourceCode r">
<code class="sourceCode R"><span><span class="fu">radiant.update</span><span class="fu">::</span><span class="fu"><a href="https://rdrr.io/pkg/radiant.update/man/radiant.update.html" class="external-link">radiant.update</a></span><span class="op">(</span><span class="op">)</span></span></code></pre></div>
<p>See the <a href="https://radiant-rstats.github.io/docs/install.html" class="external-link">installing radiant</a> page additional for details.</p>
<p><strong>Optional:</strong> You can also create a launcher on your Desktop to start Radiant by typing <code><a href="reference/launcher.html">radiant::launcher()</a></code> in the R(studio) console and pressing return. A file called <code>radiant.bat</code> (windows) or <code>radiant.command</code> (mac) will be created that you can double-click to start Radiant in your default browser. The <code>launcher</code> command will also create a file called <code>update_radiant.bat</code> (windows) or <code>update_radiant.command</code> (mac) that you can double-click to update Radiant to the latest release.</p>
<p>When Radiant starts you will see data on diamond prices. To close the application click the <i title="Power off" class="fa fa-power-off"></i> icon in the navigation bar and then click <code>Stop</code>. The Radiant process will stop and the browser window will close (Chrome) or gray-out.</p>
</div>
<div class="section level2">
<h2 id="documentation">Documentation<a class="anchor" aria-label="anchor" href="#documentation"></a>
</h2>
<p>Documentation and tutorials are available at <a href="https://radiant-rstats.github.io/docs/" class="external-link uri">https://radiant-rstats.github.io/docs/</a> and in the Radiant web interface (the <i title="Help" class="fa fa-question"></i> icons on each page and the <i title="Help" class="fa fa-question-circle"></i> icon in the navigation bar).</p>
<p>Individual Radiant packages also each have their own <a href="https://github.com/r-lib/pkgdown" class="external-link">pkgdown</a> sites:</p>
<ul>
<li><a href="http://radiant-rstats.github.io/radiant" class="external-link uri">http://radiant-rstats.github.io/radiant</a></li>
<li><a href="http://radiant-rstats.github.io/radiant.data" class="external-link uri">http://radiant-rstats.github.io/radiant.data</a></li>
<li><a href="http://radiant-rstats.github.io/radiant.design" class="external-link uri">http://radiant-rstats.github.io/radiant.design</a></li>
<li><a href="http://radiant-rstats.github.io/radiant.basics" class="external-link uri">http://radiant-rstats.github.io/radiant.basics</a></li>
<li><a href="http://radiant-rstats.github.io/radiant.model" class="external-link uri">http://radiant-rstats.github.io/radiant.model</a></li>
<li><a href="http://radiant-rstats.github.io/radiant.multivariate" class="external-link uri">http://radiant-rstats.github.io/radiant.multivariate</a></li>
</ul>
<p>Want some help getting started? Watch the tutorials on the <a href="https://radiant-rstats.github.io/docs/tutorials.html" class="external-link">documentation site</a>.</p>
</div>
<div class="section level2">
<h2 id="reporting-issues">Reporting issues<a class="anchor" aria-label="anchor" href="#reporting-issues"></a>
</h2>
<p>Please use the GitHub issue tracker at <a href="https://github.com/radiant-rstats/radiant/issues" target="_blank" class="external-link">github.com/radiant-rstats/radiant/issues</a> if you have any problems using Radiant.</p>
</div>
<div class="section level2">
<h2 id="try-radiant-online">Try Radiant online<a class="anchor" aria-label="anchor" href="#try-radiant-online"></a>
</h2>
<p>Not ready to install Radiant on your computer? Try it online at the link below:</p>
<p><a href="https://vnijs.shinyapps.io/radiant" target="_blank" class="external-link">https://vnijs.shinyapps.io/radiant</a></p>
<p>Do <strong>not</strong> upload sensitive data to this public server. The size of data upload has been restricted to 10MB for security reasons.</p>
</div>
<div class="section level2">
<h2 id="running-radiant-on-shinyappsio">Running Radiant on shinyapps.io<a class="anchor" aria-label="anchor" href="#running-radiant-on-shinyappsio"></a>
</h2>
<p>To run your own instance of Radiant on shinyapps.io first <a href="https://radiant-rstats.github.io/docs/install.html" target="_blank" class="external-link">install Radiant and its dependencies</a>. Then clone the <a href="https://github.com/radiant-rstats/radiant" target="_blank" class="external-link">radiant</a> repo and ensure you have the latest version of the Radiant packages installed by running <code>radiant/inst/app/for.shinyapps.io.R</code>. Finally, open <code>radiant/inst/app/ui.R</code> and <a href="https://shiny.posit.co/articles/shinyapps.html" class="external-link">deploy</a> the application.</p>
</div>
<div class="section level2">
<h2 id="running-radiant-on-shiny-server">Running Radiant on shiny-server<a class="anchor" aria-label="anchor" href="#running-radiant-on-shiny-server"></a>
</h2>
<p>You can also host Radiant using <a href="https://posit.co/download/shiny-server/" class="external-link">shiny-server</a>. First, install radiant on the server using the command below:</p>
<div class="sourceCode" id="cb7"><pre class="downlit sourceCode r">
<code class="sourceCode R"><span><span class="fu"><a href="https://rdrr.io/r/base/options.html" class="external-link">options</a></span><span class="op">(</span>repos <span class="op">=</span> <span class="fu"><a href="https://rdrr.io/r/base/c.html" class="external-link">c</a></span><span class="op">(</span>RSM <span class="op">=</span> <span class="st">"https://radiant-rstats.github.io/minicran"</span>, CRAN <span class="op">=</span> <span class="st">"https://cloud.r-project.org"</span><span class="op">)</span><span class="op">)</span></span>
<span><span class="fu"><a href="https://rdrr.io/r/utils/install.packages.html" class="external-link">install.packages</a></span><span class="op">(</span><span class="st">"radiant"</span><span class="op">)</span></span></code></pre></div>
<p>Then clone the <a href="https://github.com/radiant-rstats/radiant" target="_blank" class="external-link">radiant</a> repo and point shiny-server to the <code>inst/app/</code> directory. As a courtesy, please let me know if you intend to use Radiant on a server.</p>
<p>When running Radiant on a server, by default, file uploads are limited to 10MB and R-code in <em>Report > Rmd</em> and <em>Report > R</em> will not be evaluated for security reasons. If you have <code>sudo</code> access to the server and have appropriate security in place you can change these settings by adding the following lines to <code>.Rprofile</code> for the <code>shiny</code> user on the server.</p>
<div class="sourceCode" id="cb8"><pre class="sourceCode bash"><code class="sourceCode bash"><span id="cb8-1"><a href="#cb8-1" tabindex="-1"></a><span class="ex">options</span><span class="er">(</span><span class="ex">radiant.maxRequestSize</span> = <span class="at">-1</span><span class="kw">)</span> <span class="co">## no file size limit</span></span>
<span id="cb8-2"><a href="#cb8-2" tabindex="-1"></a><span class="ex">options</span><span class="er">(</span><span class="ex">radiant.report</span> = TRUE<span class="kw">)</span></span></code></pre></div>
</div>
<div class="section level2">
<h2 id="running-radiant-in-the-cloud-eg-aws">Running Radiant in the cloud (e.g., AWS)<a class="anchor" aria-label="anchor" href="#running-radiant-in-the-cloud-eg-aws"></a>
</h2>
<p>To run radiant in the cloud you can use the customized Docker container. See <a href="https://github.com/radiant-rstats/docker" target="_blank" class="external-link">https://github.com/radiant-rstats/docker</a> for details</p>
</div>
<div class="section level2">
<h2 id="saving-and-loading-state">Saving and loading state<a class="anchor" aria-label="anchor" href="#saving-and-loading-state"></a>
</h2>
<p>To save your analyses save the state of the app to a file by clicking on the <i title="Save" class="fa fa-save"></i> icon in the navbar and then on <code>Save radiant state file</code> (see also the <em>Data > Manage</em> tab). You can open this state file at a later time or on another computer to continue where you left off. You can also share the file with others that may want to replicate your analyses. As an example, load the state file <a href="https://radiant-rstats.github.io/docs/examples/radiant-example.state.rda" class="external-link"><code>radiant-example.state.rda</code></a> by clicking on the <i title="Save" class="fa fa-save"></i> icon in the navbar and then on <code>Load radiant state file</code>. Go to <em>Data > View</em> and <em>Data > Visualize</em> to see some of the settings from the previous “state” of the app. There is also a report in <em>Report > Rmd</em> that was created using the Radiant interface. The html file <a href="https://radiant-rstats.github.io/docs/examples/radiant-example.nb.html" target="_blank" class="external-link"><code>radiant-example.nb.html</code></a> contains the output.</p>
<p>A related feature in Radiant is that state is maintained if you accidentally navigate to another web page, close (and reopen) the browser, and/or hit refresh. Use <code>Refresh</code> in the <i title="Power off" class="fa fa-power-off"></i> menu in the navigation bar to return to a clean/new state.</p>
<p>Loading and saving state also works with Rstudio. If you start Radiant from Rstudio and use <i title="Power off" class="fa fa-power-off"></i> > <code>Stop</code> to stop the app, lists called <code>r_data</code>, <code>r_info</code>, and <code>r_state</code> will be put into Rstudio’s global workspace. If you start radiant again using <code><a href="reference/radiant.html">radiant::radiant()</a></code> it will use these lists to restore state. Also, if you load a state file directly into Rstudio it will be used when you start Radiant to recreate a previous state.</p>
<p><strong>Technical note</strong>: Loading state works as follows in Radiant: When an input is initialized in a Shiny app you set a default value in the call to, for example, numericInput. In Radiant, when a state file has been loaded and an input is initialized it looks to see if there is a value for an input of that name in a list called <code>r_state</code>. If there is, this value is used. The <code>r_state</code> list is created when saving state using <code>reactiveValuesToList(input)</code>. An example of a call to <code>numericInput</code> is given below where the <code>state_init</code> function from <code>radiant.R</code> is used to check if a value from <code>r_state</code> can be used.</p>
<div class="sourceCode" id="cb9"><pre class="downlit sourceCode r">
<code class="sourceCode R"><span><span class="fu">numericInput</span><span class="op">(</span><span class="st">"sm_comp_value"</span>, <span class="st">"Comparison value:"</span>, <span class="fu">state_init</span><span class="op">(</span><span class="st">"sm_comp_value"</span>, <span class="fl">0</span><span class="op">)</span><span class="op">)</span></span></code></pre></div>
</div>
<div class="section level2">
<h2 id="source-code">Source code<a class="anchor" aria-label="anchor" href="#source-code"></a>
</h2>
<p>The source code for the radiant application is available on GitHub at <a href="https://github.com/radiant-rstats" class="external-link uri">https://github.com/radiant-rstats</a>. <code>radiant.data</code>, offers tools to load, save, view, visualize, summarize, combine, and transform data. <code>radiant.design</code> builds on <code>radiant.data</code> and adds tools for experimental design, sampling, and sample size calculation. <code>radiant.basics</code> covers the basics of statistical analysis (e.g., comparing means and proportions, cross-tabs, correlation, etc.) and includes a probability calculator. <code>radiant.model</code> covers model estimation (e.g., logistic regression and neural networks), model evaluation (e.g., gains chart, profit curve, confusion matrix, etc.), and decision tools (e.g., decision analysis and simulation). Finally, <code>radiant.multivariate</code> includes tools to generate brand maps and conduct cluster, factor, and conjoint analysis.</p>
<p>These tools are used in the <em>Business Analytics</em>, <em>Quantitative Analysis</em>, <em>Research for Marketing Decisions</em>, <em>Applied Market Research</em>, <em>Consumer Behavior</em>, <em>Experiments in Firms</em>, <em>Pricing</em>, <em>Pricing Analytics</em>, and <em>Customer Analytics</em> classes at the Rady School of Management (UCSD).</p>
</div>
<div class="section level2">
<h2 id="credits">Credits<a class="anchor" aria-label="anchor" href="#credits"></a>
</h2>
<p>Radiant would not be possible without <a href="https://cran.r-project.org/" class="external-link">R</a> and <a href="https://shiny.posit.co/" class="external-link">Shiny</a>. I would like to thank <a href="https://github.com/jcheng5" class="external-link">Joe Cheng</a>, <a href="https://github.com/wch" class="external-link">Winston Chang</a>, and <a href="https://github.com/yihui" class="external-link">Yihui Xie</a> for answering questions, providing suggestions, and creating amazing tools for the R community. Other key components used in Radiant are ggplot2, dplyr, tidyr, magrittr, broom, shinyAce, shinyFiles, rmarkdown, and DT. For an overview of other packages that Radiant relies on please see the <a href="https://radiant-rstats.github.io/docs/about.html" target="_blank" class="external-link">about</a> page.</p>
</div>
<div class="section level2">
<h2 id="license">License<a class="anchor" aria-label="anchor" href="#license"></a>
</h2>
<p>Radiant is licensed under the <a href="https://tldrlegal.com/license/gnu-affero-general-public-license-v3-(agpl-3.0)" target="\_blank" class="external-link">AGPLv3</a>. As a summary, the AGPLv3 license requires, attribution, including copyright and license information in copies of the software, stating changes if the code is modified, and disclosure of all source code. Details are in the COPYING file.</p>
<p>The documentation, images, and videos for the <code>radiant.data</code> package are licensed under the creative commons attribution and share-alike license <a href="https://creativecommons.org/licenses/by-sa/4.0/" target="_blank" class="external-link">CC-BY-SA</a>. All other documentation and videos on this site, as well as the help files for <code>radiant.design</code>, <code>radiant.basics</code>, <code>radiant.model</code>, and <code>radiant.multivariate</code>, are licensed under the creative commons attribution, non-commercial, share-alike license <a href="https://creativecommons.org/licenses/by-nc-sa/4.0/" target="_blank" class="external-link">CC-NC-SA</a>.</p>
<p>If you are interested in using any of the radiant packages please email me at <a href="mailto:radiant@rady.ucsd.edu" class="email">radiant@rady.ucsd.edu</a></p>
<p>© Vincent Nijs (2023) <a rel="license" href="https://creativecommons.org/licenses/by-sa/4.0/" target="_blank" class="external-link"><img alt="Creative Commons License" style="border-width:0" src="https://radiant-rstats.github.io/docs/images/by-sa.png"></a></p>
</div>
</div>
</div>
<div class="col-md-3 hidden-xs hidden-sm" id="pkgdown-sidebar">
<div class="links">
<h2 data-toc-skip>Links</h2>
<ul class="list-unstyled">
<li><a href="https://cloud.r-project.org/package=radiant" class="external-link">View on CRAN</a></li>
<li><a href="https://github.com/radiant-rstats/radiant/" class="external-link">Browse source code</a></li>
<li><a href="https://github.com/radiant-rstats/radiant/issues" class="external-link">Report a bug</a></li>
</ul>
</div>
<div class="license">
<h2 data-toc-skip>License</h2>
<ul class="list-unstyled">
<li>
<a href="https://www.r-project.org/Licenses/AGPL-3" class="external-link">AGPL-3</a> | file <a href="LICENSE-text.html">LICENSE</a>
</li>
</ul>
</div>
<div class="citation">
<h2 data-toc-skip>Citation</h2>
<ul class="list-unstyled">
<li><a href="authors.html#citation">Citing radiant</a></li>
</ul>
</div>
<div class="developers">
<h2 data-toc-skip>Developers</h2>
<ul class="list-unstyled">
<li>Vincent Nijs <br><small class="roles"> Author, maintainer </small> </li>
</ul>
</div>
</div>
</div>
<footer><div class="copyright">
<p></p>
<p>Developed by Vincent Nijs.</p>
</div>
<div class="pkgdown">
<p></p>
<p>Site built with <a href="https://pkgdown.r-lib.org/" class="external-link">pkgdown</a> 2.0.7.</p>
</div>
</footer>
</div>
</body>
</html>