-
Notifications
You must be signed in to change notification settings - Fork 26
/
install.html
794 lines (702 loc) · 37.6 KB
/
install.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
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<meta name="generator" content="pandoc" />
<meta http-equiv="X-UA-Compatible" content="IE=EDGE" />
<title>Radiant – Business analytics using R and Shiny</title>
<script src="libs/header-attrs-2.28/header-attrs.js"></script>
<script src="libs/jquery-3.6.0/jquery-3.6.0.min.js"></script>
<meta name="viewport" content="width=device-width, initial-scale=1" />
<link href="libs/bootstrap-3.3.5/css/cosmo.min.css" rel="stylesheet" />
<script src="libs/bootstrap-3.3.5/js/bootstrap.min.js"></script>
<script src="libs/bootstrap-3.3.5/shim/html5shiv.min.js"></script>
<script src="libs/bootstrap-3.3.5/shim/respond.min.js"></script>
<style>h1 {font-size: 34px;}
h1.title {font-size: 38px;}
h2 {font-size: 30px;}
h3 {font-size: 24px;}
h4 {font-size: 18px;}
h5 {font-size: 16px;}
h6 {font-size: 12px;}
code {color: inherit; background-color: rgba(0, 0, 0, 0.04);}
pre:not([class]) { background-color: white }</style>
<script src="libs/navigation-1.1/tabsets.js"></script>
<style type="text/css">
/* padding for bootstrap navbar */
body {
padding-top: 50px;
padding-bottom: 40px;
}
/* offset scroll position for anchor links (for fixed navbar) */
.section h2 {
padding-top: 55px;
margin-top: -55px;
}
.section h3 {
padding-top: 55px;
margin-top: -55px;
}
/* don't use link color in navbar */
.dropdown-menu>li>a {
display: inline;
color: black;
padding-top: 0;
padding-bottom: 0;
}
.dropdown-menu .divider {
margin-top: 2px;
margin-bottom: 2px;
}
img {
max-width: 85% !important;
}
/*
img.center {
display: block;
margin: 0 auto;
}
*/
</style>
<link rel="stylesheet" href="libs/font-awesome-4.1.0/css/font-awesome.min.css"/>
<link rel="shortcut icon" type="image/png" href="/docs/images/icon.png"/>
<style type="text/css">
code{white-space: pre-wrap;}
span.smallcaps{font-variant: small-caps;}
span.underline{text-decoration: underline;}
div.column{display: inline-block; vertical-align: top; width: 50%;}
div.hanging-indent{margin-left: 1.5em; text-indent: -1.5em;}
ul.task-list{list-style: none;}
</style>
<style type="text/css">
code {
white-space: pre;
}
.sourceCode {
overflow: visible;
}
</style>
<style type="text/css" data-origin="pandoc">
pre > code.sourceCode { white-space: pre; position: relative; }
pre > code.sourceCode > span { line-height: 1.25; }
pre > code.sourceCode > span:empty { height: 1.2em; }
.sourceCode { overflow: visible; }
code.sourceCode > span { color: inherit; text-decoration: inherit; }
div.sourceCode { margin: 1em 0; }
pre.sourceCode { margin: 0; }
@media screen {
div.sourceCode { overflow: auto; }
}
@media print {
pre > code.sourceCode { white-space: pre-wrap; }
pre > code.sourceCode > span { text-indent: -5em; padding-left: 5em; }
}
pre.numberSource code
{ counter-reset: source-line 0; }
pre.numberSource code > span
{ position: relative; left: -4em; counter-increment: source-line; }
pre.numberSource code > span > a:first-child::before
{ content: counter(source-line);
position: relative; left: -1em; text-align: right; vertical-align: baseline;
border: none; display: inline-block;
-webkit-touch-callout: none; -webkit-user-select: none;
-khtml-user-select: none; -moz-user-select: none;
-ms-user-select: none; user-select: none;
padding: 0 4px; width: 4em;
}
pre.numberSource { margin-left: 3em; padding-left: 4px; }
div.sourceCode
{ color: #cccccc; background-color: #303030; }
@media screen {
pre > code.sourceCode > span > a:first-child::before { text-decoration: underline; }
}
code span.al { color: #ffcfaf; } /* Alert */
code span.an { color: #7f9f7f; font-weight: bold; } /* Annotation */
code span.at { } /* Attribute */
code span.bn { color: #dca3a3; } /* BaseN */
code span.bu { } /* BuiltIn */
code span.cf { color: #f0dfaf; } /* ControlFlow */
code span.ch { color: #dca3a3; } /* Char */
code span.cn { color: #dca3a3; font-weight: bold; } /* Constant */
code span.co { color: #7f9f7f; } /* Comment */
code span.cv { color: #7f9f7f; font-weight: bold; } /* CommentVar */
code span.do { color: #7f9f7f; } /* Documentation */
code span.dt { color: #dfdfbf; } /* DataType */
code span.dv { color: #dcdccc; } /* DecVal */
code span.er { color: #c3bf9f; } /* Error */
code span.ex { } /* Extension */
code span.fl { color: #c0bed1; } /* Float */
code span.fu { color: #efef8f; } /* Function */
code span.im { } /* Import */
code span.in { color: #7f9f7f; font-weight: bold; } /* Information */
code span.kw { color: #f0dfaf; } /* Keyword */
code span.op { color: #f0efd0; } /* Operator */
code span.ot { color: #efef8f; } /* Other */
code span.pp { color: #ffcfaf; font-weight: bold; } /* Preprocessor */
code span.sc { color: #dca3a3; } /* SpecialChar */
code span.ss { color: #cc9393; } /* SpecialString */
code span.st { color: #cc9393; } /* String */
code span.va { } /* Variable */
code span.vs { color: #cc9393; } /* VerbatimString */
code span.wa { color: #7f9f7f; font-weight: bold; } /* Warning */
</style>
<script>
// apply pandoc div.sourceCode style to pre.sourceCode instead
(function() {
var sheets = document.styleSheets;
for (var i = 0; i < sheets.length; i++) {
if (sheets[i].ownerNode.dataset["origin"] !== "pandoc") continue;
try { var rules = sheets[i].cssRules; } catch (e) { continue; }
var j = 0;
while (j < rules.length) {
var rule = rules[j];
// check if there is a div.sourceCode rule
if (rule.type !== rule.STYLE_RULE || rule.selectorText !== "div.sourceCode") {
j++;
continue;
}
var style = rule.style.cssText;
// check if color or background-color is set
if (rule.style.color === '' && rule.style.backgroundColor === '') {
j++;
continue;
}
// replace div.sourceCode by a pre.sourceCode rule
sheets[i].deleteRule(j);
sheets[i].insertRule('pre.sourceCode{' + style + '}', j);
}
}
})();
</script>
<style type = "text/css">
.main-container {
max-width: 940px;
margin-left: auto;
margin-right: auto;
}
img {
max-width:100%;
}
.tabbed-pane {
padding-top: 12px;
}
.html-widget {
margin-bottom: 20px;
}
button.code-folding-btn:focus {
outline: none;
}
summary {
display: list-item;
}
details > summary > p:only-child {
display: inline;
}
pre code {
padding: 0;
}
</style>
<!-- tabsets -->
<style type="text/css">
.tabset-dropdown > .nav-tabs {
display: inline-table;
max-height: 500px;
min-height: 44px;
overflow-y: auto;
border: 1px solid #ddd;
border-radius: 4px;
}
.tabset-dropdown > .nav-tabs > li.active:before, .tabset-dropdown > .nav-tabs.nav-tabs-open:before {
content: "\e259";
font-family: 'Glyphicons Halflings';
display: inline-block;
padding: 10px;
border-right: 1px solid #ddd;
}
.tabset-dropdown > .nav-tabs.nav-tabs-open > li.active:before {
content: "\e258";
font-family: 'Glyphicons Halflings';
border: none;
}
.tabset-dropdown > .nav-tabs > li.active {
display: block;
}
.tabset-dropdown > .nav-tabs > li > a,
.tabset-dropdown > .nav-tabs > li > a:focus,
.tabset-dropdown > .nav-tabs > li > a:hover {
border: none;
display: inline-block;
border-radius: 4px;
background-color: transparent;
}
.tabset-dropdown > .nav-tabs.nav-tabs-open > li {
display: block;
float: none;
}
.tabset-dropdown > .nav-tabs > li {
display: none;
}
</style>
<!-- code folding -->
</head>
<body>
<div class="container-fluid main-container">
<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">
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
<a class="navbar-brand" href="https://github.com/radiant-rstats/docs">Radiant</a>
</div>
<div id="navbar" class="navbar-collapse collapse">
<ul class="nav navbar-nav">
<li><a href="/docs/index.html">Home</a></li>
<li><a href="/docs/news.html">News</a></li>
<li><a href="/docs/install.html">Install</a></li>
<li class="dropdown">
<a href="/docs/data/" class="dropdown-toggle" data-toggle="dropdown" role="button"
aria-expanded="false">Data<span class="caret"></span></a>
<ul class="dropdown-menu" role="menu">
<li><a href="/docs/data/manage.html">Manage</a></li>
<li><a href="/docs/data/view.html">View</a></li>
<li><a href="/docs/data/visualize.html">Visualize</a></li>
<li><a href="/docs/data/pivotr.html">Pivot</a></li>
<li><a href="/docs/data/explore.html">Explore</a></li>
<li><a href="/docs/data/transform.html">Transform</a></li>
<li><a href="/docs/data/combine.html">Combine</a></li>
</ul>
</li>
<li class="dropdown">
<a href="/docs/design/" class="dropdown-toggle" data-toggle="dropdown" role="button"
aria-expanded="false">Design<span class="caret"></span></a>
<ul class="dropdown-menu" role="menu">
<li class="dropdown-header">DOE</li>
<li><a href="/docs/design/doe.html">Design of Experiments (DOE)</a></li>
<li class="divider"></li>
<li class="dropdown-header">Sample</li>
<li><a href="/docs/design/sampling.html">Random sampling</a></li>
<li><a href="/docs/design/randomizer.html">Random assignment</a></li>
<li><a href="/docs/design/sample_size.html">Sample size (single)</a></li>
<li><a href="/docs/design/sample_size_comp.html">Sample size (compare)</a></li>
</ul>
</li>
<li class="dropdown">
<a href="/docs/basics/" class="dropdown-toggle" data-toggle="dropdown" role="button"
aria-expanded="false">Basics<span class="caret"></span></a>
<ul class="dropdown-menu" role="menu">
<li class="dropdown-header">Probability</li>
<li><a href="/docs/basics/prob_calc.html">Probability calculator</a></li>
<li><a href="/docs/basics/clt.html">Central Limit Theorem</a></li>
<li class="divider"></li>
<li class="dropdown-header">Means</li>
<li><a href="/docs/basics/single_mean.html">Single mean</a></li>
<li><a href="/docs/basics/compare_means.html">Compare means</a></li>
<li class="divider"></li>
<li class="dropdown-header">Proportions</li>
<li><a href="/docs/basics/single_prop.html">Single proportion</a></li>
<li><a href="/docs/basics/compare_props.html">Compare proportions</a></li>
<li class="divider"></li>
<li class="dropdown-header">Tables</li>
<li><a href="/docs/basics/goodness.html">Goodness of fit</a></li>
<li><a href="/docs/basics/cross_tabs.html">Cross-tabs</a></li>
<li><a href="/docs/basics/correlation.html">Correlation</a></li>
</ul>
</li>
<li class="dropdown">
<a href="/docs/model/" class="dropdown-toggle" data-toggle="dropdown" role="button"
aria-expanded="false">Model<span class="caret"></span></a>
<ul class="dropdown-menu" role="menu">
<li class="dropdown-header">Estimate</li>
<li><a href="/docs/model/regress.html">Linear regression (OLS)</a></li>
<li><a href="/docs/model/logistic.html">Logistic regression (GLM)</a></li>
<li><a href="/docs/model/mnl.html">Multinomial logistic regression (MNL)</a></li>
<li><a href="/docs/model/nn.html">Neural Network</a></li>
<li><a href="/docs/model/nb.html">Naive Bayes</a></li>
<li class="divider"></li>
<li class="dropdown-header">Trees</li>
<li><a href="/docs/model/crtree.html">Classification and regression trees</a></li>
<li><a href="/docs/model/rforest.html">Random Forest</a></li>
<li><a href="/docs/model/gbt.html">Gradient Boosted Trees</a></li>
<li class="divider"></li>
<li class="dropdown-header">Evaluate</li>
<li><a href="/docs/model/evalreg.html">Evaluate regression</a></li>
<li><a href="/docs/model/evalbin.html">Evaluate classification</a></li>
<li class="divider"></li>
<li class="dropdown-header">Recommend</li>
<li><a href="/docs/model/crs.html">Collaborative Filtering</a></li>
<li class="divider"></li>
<li class="dropdown-header">Decide</li>
<li><a href="/docs/model/dtree.html">Decision analysis</a></li>
<li><a href="/docs/model/simulater.html">Simulate</a></li>
</ul>
</li>
<li class="dropdown">
<a href="/docs/multivariate/" class="dropdown-toggle" data-toggle="dropdown" role="button"
aria-expanded="false">Multivariate<span class="caret"></span></a>
<ul class="dropdown-menu" role="menu">
<li class="dropdown-header">Maps</li>
<li><a href="/docs/multivariate/mds.html">(Dis)similarity</a></li>
<li><a href="/docs/multivariate/prmap.html">Attributes</a></li>
<li class="divider"></li>
<li class="dropdown-header">Factor</li>
<li><a href="/docs/multivariate/pre_factor.html">Pre-factor</a></li>
<li><a href="/docs/multivariate/full_factor.html">Factor</a></li>
<li class="divider"></li>
<li class="dropdown-header">Cluster</li>
<li><a href="/docs/multivariate/hclus.html">Hierarchical</a></li>
<li><a href="/docs/multivariate/kclus.html">K-clustering</a></li>
<li class="divider"></li>
<li class="dropdown-header">Conjoint</li>
<li><a href="/docs/multivariate/conjoint.html">Conjoint</a></li>
</ul>
</li>
<li class="dropdown">
<a href="/docs/R/" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-expanded="false">R<span
class="caret"></span></a>
<ul class="dropdown-menu" role="menu">
<li><a href="/docs/data/report_rmd.html">Report > Rmd</a></li>
<li><a href="/docs/data/report_r.html">Report > R</a></li>
<li><a href="/docs/programming.html">Programming</a></li>
<li><a href="/docs/resources.html">Resources</a></li>
</ul>
</li>
<li class="dropdown">
<a href="/docs/tutorials/" class="dropdown-toggle" data-toggle="dropdown" role="button"
aria-expanded="false">Tutorials<span class="caret"></span></a>
<ul class="dropdown-menu" role="menu">
<li><a href="/docs/tutorials.html">Introduction to Radiant</a></li>
<li><a href="/docs/radiant-tutorial-series.html">Radiant Tutorial Series</a></li>
</ul>
</li>
<li><a href="/docs/about.html">About</a></li>
</ul>
</div>
<!--/.nav-collapse -->
</div>
<!--/.container -->
</div>
<!--/.navbar -->
<style>
.btn,
.form-control,
pre,
code,
pre code {
border-radius: 4px;
}
.table {
width: auto;
}
ul,
ol {
padding-left: 18px;
}
code,
pre,
pre code {
overflow: auto;
white-space: pre;
word-wrap: normal;
}
code {
color: #c7254e;
background-color: #f9f2f4;
}
pre {
background-color: #ffffff;
}
</style>
<div id="header">
<h1 class="title toc-ignore">Radiant – Business analytics using R and
Shiny</h1>
</div>
<p>Radiant is a platform-independent browser-based interface for
business analytics in <a href="https://www.r-project.org/">R</a>, based
on the <a href="https://shiny.posit.co/">Shiny</a> package. Developed by
<a href="https://rady.ucsd.edu/faculty-research/faculty/vincent-nijs.html" target="_blank">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" target="_blank">https://github.com/radiant-rstats/radiant/issues</a>.
For other questions and comments please use <a
href="mailto:[email protected]"
class="email">[email protected]</a>.</p>
<blockquote>
<p><strong>Note:</strong> R 4.2 or higher is required to use the latest
version of Radiant.</p>
</blockquote>
<blockquote>
<p><strong>Note:</strong> User profiles (or user names or logins)
containing non-ASCII characters may cause problems during installation.
To address this issue please use a profile name (login) that contains
ASCII (A-Z, a-z) letters and numbers only. For example,
c:\users\myprofilename</p>
</blockquote>
<div id="installing-r-rstudio-and-radiant-on-windows"
class="section level2">
<h2>Installing R, Rstudio, and Radiant on Windows</h2>
<!-- For Windows, download and run the all-in-one installer for <a href="https://rady.ucsd.edu/faculty/directory/vnijs/Rady-Radiant-Installer-Latest.exe">R, Rstudio, and Radiant</a>. If you see a warning message like the image shown below when you run the installer click on "More info" and then on "Run anyway". -->
<p>For Windows, download and run the all-in-one installer for
<a href="https://download.rady.ucsd.edu/Rady-Radiant-Installer-Latest.exe">R,
Rstudio, and Radiant</a>. If you see a warning message like the image
shown below when you run the installer click on “More info” and then on
“Run anyway”.</p>
<p><img src="images/win-protected.png" width="300px"></p>
<p>For a video tutorial see the <code>Install Radiant on Windows</code>
video below:</p>
<iframe width="640" height="375" src="https://www.youtube.com/embed/ZNgwgosdNhM" title="YouTube video player" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture" allowfullscreen>
</iframe>
<blockquote>
<p>Credits: Thanks go to Brandon Salas (Rady School of Management @
UCSD) for creating the Windows installer and Greg Aujero (Rady School of
Management @ UCSD) for updating the installer.</p>
</blockquote>
<p>We recommend you use or <a
href="https://www.google.com/chrome">Chrome</a> or <a
href="https://www.microsoft.com/en-us/edge">Microsoft’s Edge browser</a>
or <a href="https://www.mozilla.org/en-US/firefox">Firefox</a> as your
default browser.</p>
</div>
<div id="installing-r-rstudio-and-radiant-on-macos"
class="section level2">
<h2>Installing R, Rstudio, and Radiant on macOS</h2>
<ul>
<li>If you have a mac with an Intel Chip (models prior to late 2020),
that can still run macOS Big Sur (11.7.10) or newer, download and
install the latest version of R from
<a href="https://cloud.r-project.org/bin/macosx/big-sur-x86_64/base/R-release.pkg" target="_blank">https://cloud.r-project.org/bin/macosx/big-sur-x86_64/</a></li>
<li>If you have a mac with an Intel Chip (models prior to late 2020),
that cannot be upgraded to macOS Big Sur or newer, you may still be able
to run Radiant if you can download and install R 4.2.3, from
<a href="https://cloud.r-project.org/bin/macosx/base/R-4.2.3.pkg" target="_blank">https://cloud.r-project.org/bin/macosx/base/R-4.2.3.pkg</a></li>
<li>If you have a mac with an ARM chip (models launched after 2020),
with macOS Big Sur (11.7.10) or newer, download and install the latest
version of R from
<a href="https://cloud.r-project.org/bin/macosx/big-sur-arm64/base/R-release.pkg" target="_blank">https://cran.r-project.org/bin/macosx/big-sur-arm64/</a></li>
</ul>
<p>Double click on the .pkg file to install and follow the prompts.
After R has been installed, open R, copy-and-paste the command below
into R, and press return. Accept all default settings during the install
process:</p>
<div class="sourceCode" id="cb1"><pre class="sourceCode r"><code class="sourceCode r"><span id="cb1-1"><a href="#cb1-1" tabindex="-1"></a><span class="fu">source</span>(<span class="st">"https://raw.githubusercontent.com/radiant-rstats/minicran/gh-pages/install.R"</span>)</span></code></pre></div>
<p>For a video tutorial see the
<code>Installing R, Rstudio, and Radiant on macOS</code> video
below:</p>
<iframe width="640" height="375" src="https://www.youtube.com/embed/f5h2oDBsnJI" title="YouTube video player" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture" allowfullscreen>
</iframe>
<blockquote>
<p>Note: It is possible that you will be asked for your password during
the install process to correct permission settings for the directory
/usr/local/bin. If there is still an error installing
<code>tinytex</code> please run the command below from the “terminal”
app in macOS</p>
</blockquote>
<div class="sourceCode" id="cb2"><pre
class="sourceCode bash"><code class="sourceCode bash"><span id="cb2-1"><a href="#cb2-1" tabindex="-1"></a><span class="fu">sudo</span> chown <span class="at">-R</span> <span class="va">$(</span><span class="fu">whoami</span><span class="va">)</span>:admin /usr/local/bin<span class="kw">;</span> <span class="ex">R</span> <span class="at">-e</span> <span class="st">"tinytex::install_tinytex()"</span></span></code></pre></div>
</div>
<div id="installing-r-rstudio-and-radiant-on-linux"
class="section level2">
<h2>Installing R, Rstudio, and Radiant on Linux</h2>
<p>The first step will be to install R and a several additional linux
tools. The commands required for Ubuntu 18.04 are shown below:</p>
<div class="sourceCode" id="cb3"><pre class="sourceCode sh"><code class="sourceCode bash"><span id="cb3-1"><a href="#cb3-1" tabindex="-1"></a><span class="fu">sudo</span> apt-get update</span>
<span id="cb3-2"><a href="#cb3-2" tabindex="-1"></a><span class="fu">sudo</span> apt-get install gpg-agent gdebi-core</span>
<span id="cb3-3"><a href="#cb3-3" tabindex="-1"></a></span>
<span id="cb3-4"><a href="#cb3-4" tabindex="-1"></a><span class="co">## Appends the CRAN repository to your sources.list file</span></span>
<span id="cb3-5"><a href="#cb3-5" tabindex="-1"></a><span class="fu">sudo</span> sh <span class="at">-c</span> <span class="st">"echo 'deb http://cloud.r-project.org/bin/linux/ubuntu focal-cran40/' >> /etc/apt/sources.list"</span> </span>
<span id="cb3-6"><a href="#cb3-6" tabindex="-1"></a><span class="fu">sudo</span> gpg <span class="at">--keyserver</span> hkp://keyserver.ubuntu.com:80 <span class="at">--recv-keys</span> E298A3A825C0D65DFD57CBB651716619E084DAB9 </span>
<span id="cb3-7"><a href="#cb3-7" tabindex="-1"></a><span class="fu">sudo</span> gpg <span class="at">-a</span> <span class="at">--export</span> E298A3A825C0D65DFD57CBB651716619E084DAB9 <span class="kw">|</span> <span class="ex">apt-key</span> add <span class="at">-</span></span>
<span id="cb3-8"><a href="#cb3-8" tabindex="-1"></a><span class="fu">sudo</span> apt-get update </span>
<span id="cb3-9"><a href="#cb3-9" tabindex="-1"></a></span>
<span id="cb3-10"><a href="#cb3-10" tabindex="-1"></a><span class="co">## Install R and required linux tools</span></span>
<span id="cb3-11"><a href="#cb3-11" tabindex="-1"></a><span class="fu">sudo</span> apt-get install r-base r-base-dev</span>
<span id="cb3-12"><a href="#cb3-12" tabindex="-1"></a><span class="fu">sudo</span> apt-get install libssl-dev libcurl4-openssl-dev libxml2-dev libicu-dev <span class="dt">\</span></span>
<span id="cb3-13"><a href="#cb3-13" tabindex="-1"></a> unixodbc-dev libpq-dev libgdal-dev libproj-dev libcairo2-dev cargo libgsl-dev</span>
<span id="cb3-14"><a href="#cb3-14" tabindex="-1"></a></span>
<span id="cb3-15"><a href="#cb3-15" tabindex="-1"></a><span class="co">## Download and install Rstudio (preview)</span></span>
<span id="cb3-16"><a href="#cb3-16" tabindex="-1"></a><span class="fu">wget</span> <span class="at">-O</span> rstudio-amd64.deb https://download1.rstudio.org/desktop/bionic/amd64/rstudio-2022.02.2-485-amd64.deb</span>
<span id="cb3-17"><a href="#cb3-17" tabindex="-1"></a><span class="fu">sudo</span> gdebi rstudio-amd64.deb</span>
<span id="cb3-18"><a href="#cb3-18" tabindex="-1"></a><span class="fu">rm</span> rstudio-amd64.deb</span></code></pre></div>
<p>Run the following command to install the required R-packages for a
user:</p>
<div class="sourceCode" id="cb4"><pre class="sourceCode r"><code class="sourceCode r"><span id="cb4-1"><a href="#cb4-1" tabindex="-1"></a>R <span class="sc">-</span>e <span class="st">"source('https://raw.githubusercontent.com/radiant-rstats/minicran/gh-pages/update.R')"</span></span></code></pre></div>
<p>To make R-packages available to all users on a linux system run the
command below instead:</p>
<div class="sourceCode" id="cb5"><pre class="sourceCode r"><code class="sourceCode r"><span id="cb5-1"><a href="#cb5-1" tabindex="-1"></a>sudo su <span class="sc">-</span>c <span class="st">"R -e </span><span class="sc">\"</span><span class="st">source('https://raw.githubusercontent.com/radiant-rstats/minicran/gh-pages/update.R')</span><span class="sc">\"</span><span class="st">"</span></span></code></pre></div>
<p>To ensure that all packages are available and up to date use:</p>
<div class="sourceCode" id="cb6"><pre class="sourceCode r"><code class="sourceCode r"><span id="cb6-1"><a href="#cb6-1" tabindex="-1"></a>R <span class="sc">-</span>e <span class="st">"radiant.update::radiant.update()"</span></span></code></pre></div>
<p>or</p>
<div class="sourceCode" id="cb7"><pre class="sourceCode r"><code class="sourceCode r"><span id="cb7-1"><a href="#cb7-1" tabindex="-1"></a>sudo su <span class="sc">-</span>c <span class="st">"R -e 'radiant.update::radiant.update()'"</span></span></code></pre></div>
</div>
<div id="starting-stopping-and-updating-radiant" class="section level2">
<h2>Starting, Stopping, and Updating Radiant</h2>
<p>I recommend you use Rstudio to run the Radiant application. When you
open Rstudio you can start Radiant through the <code>Addins</code> menu
at the top of the screen <code>Start radiant (browser)</code>. If for
some reason the <code>Start radiant (browser)</code> is not shown in the
dropdown, enter <code>radiant::radiant()</code> in the Rstudio console.
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 or gray-out.</p>
<p>To add an option to upgrade Radiant easily, use the commands below to
install the <code>radiant.upgrade</code> package. You should now see two
new item in the <code>Addins</code> dropdown that you can use for future
radiant upgrades.</p>
<div class="sourceCode" id="cb8"><pre class="sourceCode r"><code class="sourceCode r"><span id="cb8-1"><a href="#cb8-1" tabindex="-1"></a><span class="fu">options</span>(<span class="at">repos =</span> <span class="fu">c</span>(<span class="at">RSM =</span> <span class="st">"https://radiant-rstats.github.io/minicran"</span>, <span class="at">CRAN =</span> <span class="st">"https://cloud.r-project.org"</span>))</span>
<span id="cb8-2"><a href="#cb8-2" tabindex="-1"></a><span class="fu">install.packages</span>(<span class="st">"remotes"</span>)</span>
<span id="cb8-3"><a href="#cb8-3" tabindex="-1"></a>remotes<span class="sc">::</span><span class="fu">install_github</span>(<span class="st">"radiant-rstats/radiant.update"</span>, <span class="at">upgrade =</span> <span class="st">"never"</span>)</span>
<span id="cb8-4"><a href="#cb8-4" tabindex="-1"></a>radiant.update<span class="sc">::</span><span class="fu">radiant.update</span>()</span></code></pre></div>
</div>
<div id="sharing-rstudio-projects-with-others" class="section level2">
<h2>Sharing Rstudio projects with others</h2>
<p>An excellent way to share an Rstudio project hosted online (e.g., on
Dropbox) with others is to use the <code>usethis</code> package</p>
<div class="sourceCode" id="cb9"><pre class="sourceCode r"><code class="sourceCode r"><span id="cb9-1"><a href="#cb9-1" tabindex="-1"></a><span class="fu">install.packages</span>(<span class="st">"usethis"</span>)</span>
<span id="cb9-2"><a href="#cb9-2" tabindex="-1"></a>?usethis<span class="sc">::</span>use_course</span></code></pre></div>
<p>As an example, run the command below to download and open an Rstudio
project. Note the “1” at the end of the URL instead of Dropbox’s default
which is “0”.</p>
<div class="sourceCode" id="cb10"><pre class="sourceCode r"><code class="sourceCode r"><span id="cb10-1"><a href="#cb10-1" tabindex="-1"></a>usethis<span class="sc">::</span><span class="fu">use_course</span>(<span class="st">"https://www.dropbox.com/sh/0dmcr2xsphtn1ha/AADsrYsi8KBkddWx_B-aQbi1a?dl=1"</span>)</span></code></pre></div>
</div>
<div id="installing-additional-r-development-tools"
class="section level2">
<h2>Installing additional R-development tools</h2>
<p>To install additional development tools (i.e., Rtools, git, homebrew)
copy-and-paste the command below into R or Rstudio and press return.
When installing Rtools, Windows users should make sure to check the
option to add Rstools to the system path.</p>
<div class="sourceCode" id="cb11"><pre class="sourceCode r"><code class="sourceCode r"><span id="cb11-1"><a href="#cb11-1" tabindex="-1"></a><span class="fu">source</span>(<span class="st">"https://raw.githubusercontent.com/radiant-rstats/minicran/gh-pages/install_dev.R"</span>)</span></code></pre></div>
</div>
<div id="documentation" class="section level2">
<h2>Documentation</h2>
<p>Documentation and tutorials for each of the apps are available at <a
href="https://radiant-rstats.github.io/docs/"
class="uri">https://radiant-rstats.github.io/docs/</a> and in the
Radiant web interface (the <i title='Help' class='fa fa-edit'></i> icons
on each page and the <i title='Help' class='fa fa-question-circle'></i>
icon in the navigation bar). See also the <a
href="https://github.com/r-lib/pkgdown">pkgdown</a> documentation
sites:</p>
<ul>
<li><a href="http://radiant-rstats.github.io/radiant"
class="uri">http://radiant-rstats.github.io/radiant</a></li>
<li><a href="http://radiant-rstats.github.io/radiant.data"
class="uri">http://radiant-rstats.github.io/radiant.data</a></li>
<li><a href="http://radiant-rstats.github.io/radiant.design"
class="uri">http://radiant-rstats.github.io/radiant.design</a></li>
<li><a href="http://radiant-rstats.github.io/radiant.basics"
class="uri">http://radiant-rstats.github.io/radiant.basics</a></li>
<li><a href="http://radiant-rstats.github.io/radiant.model"
class="uri">http://radiant-rstats.github.io/radiant.model</a></li>
<li><a href="http://radiant-rstats.github.io/radiant.multivariate"
class="uri">http://radiant-rstats.github.io/radiant.multivariate</a></li>
</ul>
<p>Want more help getting started? Watch the tutorials on the <a
href="https://radiant-rstats.github.io/docs/tutorials.html">documentation
site</a>.</p>
</div>
<div id="trouble-shooting" class="section level2">
<h2>Trouble shooting</h2>
<p>Windows users may need to start R and Rstudio
<code>as administrator</code>. On rare occasions R(studio) may complain
that a package is not yet installed when starting Radiant. If so,
install the package mentioned using the command below but replace
‘package-that-is-not-yet-installed’ with the package name mentioned in
the error message</p>
<div class="sourceCode" id="cb12"><pre class="sourceCode r"><code class="sourceCode r"><span id="cb12-1"><a href="#cb12-1" tabindex="-1"></a><span class="fu">install.packages</span>(<span class="st">"package-that-is-not-yet-installed"</span>, <span class="at">repos =</span> <span class="st">"https://cran.rstudio.com"</span>, <span class="at">type =</span> <span class="st">"binary"</span>)</span></code></pre></div>
<p>or copy-and-paste the commands below into R to check if any required
packages have not yet been installed</p>
<div class="sourceCode" id="cb13"><pre class="sourceCode r"><code class="sourceCode r"><span id="cb13-1"><a href="#cb13-1" tabindex="-1"></a><span class="fu">options</span>(<span class="at">repos =</span> <span class="fu">c</span>(<span class="at">RSM =</span> <span class="st">"https://radiant-rstats.github.io/minicran"</span>, <span class="at">CRAN =</span> <span class="st">"https://cloud.r-project.org"</span>))</span>
<span id="cb13-2"><a href="#cb13-2" tabindex="-1"></a><span class="fu">install.packages</span>(<span class="st">"remotes"</span>)</span>
<span id="cb13-3"><a href="#cb13-3" tabindex="-1"></a>remotes<span class="sc">::</span><span class="fu">install_github</span>(<span class="st">"radiant-rstats/radiant.update"</span>, <span class="at">upgrade =</span> <span class="st">"never"</span>)</span>
<span id="cb13-4"><a href="#cb13-4" tabindex="-1"></a>radiant.update<span class="sc">::</span><span class="fu">radiant.update</span>()</span></code></pre></div>
<p>If you are having trouble updating Radiant on Windows please (1)
Restart Rstudio and (2) run the code below:</p>
<div class="sourceCode" id="cb14"><pre class="sourceCode r"><code class="sourceCode r"><span id="cb14-1"><a href="#cb14-1" tabindex="-1"></a><span class="fu">options</span>(<span class="at">repos =</span> <span class="fu">c</span>(<span class="at">RSM =</span> <span class="st">"https://radiant-rstats.github.io/minicran"</span>, <span class="at">CRAN =</span> <span class="st">"https://cloud.r-project.org"</span>))</span>
<span id="cb14-2"><a href="#cb14-2" tabindex="-1"></a><span class="fu">install.packages</span>(<span class="fu">c</span>(<span class="st">"fs"</span>, <span class="st">"remotes"</span>))</span>
<span id="cb14-3"><a href="#cb14-3" tabindex="-1"></a>remotes<span class="sc">::</span><span class="fu">install_github</span>(<span class="st">"radiant-rstats/radiant.update"</span>, <span class="at">upgrade =</span> <span class="st">"never"</span>)</span>
<span id="cb14-4"><a href="#cb14-4" tabindex="-1"></a>fs<span class="sc">::</span><span class="fu">dir_delete</span>(<span class="fu">file.path</span>(<span class="fu">.libPaths</span>()[<span class="dv">1</span>], <span class="st">"00LOCK"</span>))</span>
<span id="cb14-5"><a href="#cb14-5" tabindex="-1"></a>radiant.update<span class="sc">::</span><span class="fu">radiant.update</span>(<span class="at">options =</span> <span class="st">"--no-lock"</span>)</span></code></pre></div>
<p>Some users have reported that the Malwarebytes software can
inappropriately block R-packages from being installed or updated. If you
use Malwarebytes and are experiencing problems you can try (temporarily)
turning it off during the install process or when upgrading.</p>
<p>If there is an error installing <code>tinytex</code> on macOS please
run the command below from the “terminal” app:</p>
<div class="sourceCode" id="cb15"><pre
class="sourceCode bash"><code class="sourceCode bash"><span id="cb15-1"><a href="#cb15-1" tabindex="-1"></a><span class="fu">sudo</span> chown <span class="at">-R</span> <span class="va">$(</span><span class="fu">whoami</span><span class="va">)</span>:admin /usr/local/bin<span class="kw">;</span> <span class="ex">R</span> <span class="at">-e</span> <span class="st">"tinytex::install_tinytex()"</span></span></code></pre></div>
</div>
<div id="reporting-issues" class="section level2">
<h2>Reporting issues</h2>
<p>Rady students can report any issues they might have with Radiant on
Piazza. Otherwise, please use the GitHub issue tracker at
<a href="https://github.com/radiant-rstats/radiant/issues" target="_blank">github.com/radiant-rstats/radiant/issues</a>.</p>
</div>
© Vincent Nijs (2024) <a rel="license" href="https://creativecommons.org/licenses/by-nc-sa/4.0/" target="_blank">
<im2024t="Creative Commons License" style="border-width: 0" src="/docs/images/by-nc-sa.png" />
</a>
<!-- some extra javascript for older browsers -->
<script type="text/javascript" src="libs/polyfill.js"></script>
<!-- mathjax -->
<!-- <script type='text/javascript' src='https://cdn.mathjax.org/mathjax/latest/MathJax.js?config=TeX-AMS-MML_HTMLorMML'></script> -->
<script>
// manage active state of menu based on current page
$(document).ready(function () {
// active menu
href = window.location.pathname
href = href.substr(href.lastIndexOf('/') + 1)
$('a[href="' + href + '"]').parent().addClass('active');
// manage active menu header
if (href.startsWith('authoring_'))
$('a[href="' + 'authoring' + '"]').parent().addClass('active');
else if (href.endsWith('_format.html'))
$('a[href="' + 'formats' + '"]').parent().addClass('active');
else if (href.startsWith('developer_'))
$('a[href="' + 'developer' + '"]').parent().addClass('active');
});
// Google analytics
(function (i, s, o, g, r, a, m) {
i['GoogleAnalyticsObject'] = r; i[r] = i[r] || function () {
(i[r].q = i[r].q || []).push(arguments)
}, i[r].l = 1 * new Date(); a = s.createElement(o),
m = s.getElementsByTagName(o)[0]; a.async = 1; a.src = g; m.parentNode.insertBefore(a, m)
})(window, document, 'script', 'https://www.google-analytics.com/analytics.js', 'ga');
ga('create', 'UA-61296577-2', 'auto');
ga('send', 'pageview');
</script>
</div>
<script>
// add bootstrap table styles to pandoc tables
function bootstrapStylePandocTables() {
$('tr.odd').parent('tbody').parent('table').addClass('table table-condensed');
}
$(document).ready(function () {
bootstrapStylePandocTables();
});
</script>
<!-- tabsets -->
<script>
$(document).ready(function () {
window.buildTabsets("TOC");
});
$(document).ready(function () {
$('.tabset-dropdown > .nav-tabs > li').click(function () {
$(this).parent().toggleClass('nav-tabs-open');
});
});
</script>
<!-- code folding -->
<!-- dynamically load mathjax for compatibility with self-contained -->
<script>
(function () {
var script = document.createElement("script");
script.type = "text/javascript";
script.src = "https://mathjax.rstudio.com/latest/MathJax.js?config=TeX-AMS-MML_HTMLorMML";
document.getElementsByTagName("head")[0].appendChild(script);
})();
</script>
</body>
</html>