Skip to content

Commit 3afd028

Browse files
update documentation
1 parent cbfa3a9 commit 3afd028

File tree

3 files changed

+13
-26
lines changed

3 files changed

+13
-26
lines changed

02-installation.Rmd

+3-3
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ if (!dir.exists(package_dir)) dir.create(package_dir, recursive = TRUE)
2020
# then make a configuration file that notifies R of the new package directory
2121
# change [username] to your actual username in your P drive - usually your last name followed by your first initial
2222
if (!dir.exists(package_dir)) dir.create(package_dir, recursive = TRUE)
23-
env_file <- "\\ur2.urel.berkeley.edu\UR_USERS\[usernmae]"
23+
env_file <- "\\ur2.urel.berkeley.edu\UR_USERS\[username]"
2424
2525
# and add the new location to the configuration file
2626
cat("\nR_LIBS_USER='", package_dir, "'",
@@ -50,13 +50,13 @@ If you haven't completed all of those items, head over to section [Test CDW](#te
5050
In order to make sure everything is working properly, we'll run a quick disco test:
5151

5252
```{r disco_test}
53-
# you'll always load the discoveryengine package before doing anythying else
53+
# you'll always load the discoveryengine package before doing anything else
5454
library(discoveryengine)
5555
# make sure we can create a disco definition
5656
high_cap = has_capacity(1)
5757
# make sure that things print properly
5858
high_cap
59-
# make sure we can send the defintion to the data warehouse
59+
# make sure we can send the definition to the data warehouse
6060
display(high_cap)
6161
```
6262

_main.tex

+6-15
Original file line numberDiff line numberDiff line change
@@ -334,20 +334,20 @@ \chapter{Installation}\label{installation}}
334334
\end{Highlighting}
335335
\end{Shaded}
336336
337-
The first result returned shoud be ``R:/Prospect Development/Prospect Analysis/pd-shared-r-packages''. If it's not, follow the steps below to change your default library path.
337+
The first result returned should be "\\\\ur2.urel.berkeley.edu/ur_unitshares/Prospect Development/Prospect Analysis/pd-shared-r-packages". If it's not, follow the steps below to change your default library path.
338338
339339
Step 1: Open a new RStudio session and run the following script:
340340
341341
\begin{Shaded}
342342
\begin{Highlighting}[]
343343
\CommentTok{# the first part sets up the new package directory}
344-
\NormalTok{package_dir <-}\StringTok{ "R:/Prospect Development/Prospect Analysis/pd-shared-r-packages"}
344+
\NormalTok{package_dir <-}\StringTok{ "\\\\ur2.urel.berkeley.edu/ur_unitshares/Prospect Development/Prospect Analysis/pd-shared-r-packages"}
345345
\ControlFlowTok{if}\NormalTok{ (}\OperatorTok{!}\KeywordTok{dir.exists}\NormalTok{(package_dir)) }\KeywordTok{dir.create}\NormalTok{(package_dir, }\DataTypeTok{recursive =} \OtherTok{TRUE}\NormalTok{)}
346346
347347
\CommentTok{# then make a configuration file that notifies R of the new package directory}
348-
\CommentTok{# change [username] to your actual username in your P drive - usually LastNameFirstInitial}
349-
\NormalTok{env_file <-}\StringTok{ "P:/[username]/.Renviron"}
348+
\CommentTok{# change [username] to your actual username in your P drive - usually your last name followed by your first initial}
350349
\ControlFlowTok{if}\NormalTok{ (}\OperatorTok{!}\KeywordTok{file.exists}\NormalTok{(env_file)) }\KeywordTok{file.create}\NormalTok{(env_file)}
350+
\NormalTok{env_file <-}\StringTok{ "\\ur2.urel.berkeley.edu\UR_USERS\[username]"}
351351
352352
\CommentTok{# and add the new location to the configuration file}
353353
\KeywordTok{cat}\NormalTok{(}\StringTok{"}\CharTok{\textbackslash{}n}\StringTok{R_LIBS_USER='"}\NormalTok{, package_dir, }\StringTok{"'"}\NormalTok{, }
@@ -357,14 +357,6 @@ \chapter{Installation}\label{installation}}
357357
358358
Step 2:
359359
360-
Find the newly created .Renviron file. It will be in your P drive.
361-
362-
Step 3:
363-
364-
Move the .Renviron file to your Documents folder. This should be located in D:\textbackslash Users\textbackslash{[}username{]}\textbackslash Documents. Simply drag and drop.
365-
366-
Step 4:
367-
368360
Quit your current RStudio session and open a new one. Try running the following test again:
369361
370362
\begin{Shaded}
@@ -380,7 +372,6 @@ \section{Before you continue}\label{before-you-continue}}
380372
381373
At this point, you should have already:
382374
- tested your CDW connection
383-
- installed \texttt{getcdw}
384375
- run a test query
385376
386377
If you haven't completed all of those items, head over to section \protect\hyperlink{test-cdw}{Test CDW} and complete those steps, and then return here.
@@ -392,7 +383,7 @@ \section{A disco test}\label{a-disco-test}}
392383
393384
\begin{Shaded}
394385
\begin{Highlighting}[]
395-
\CommentTok{# you'll always load the discoveryengine package before doing anythying else}
386+
\CommentTok{# you'll always load the discoveryengine package before doing anything else}
396387
\KeywordTok{library}\NormalTok{(discoveryengine)}
397388
\CommentTok{# make sure we can create a disco definition}
398389
\NormalTok{high_cap =}\StringTok{ }\KeywordTok{has_capacity}\NormalTok{(}\DecValTok{1}\NormalTok{)}
@@ -409,7 +400,7 @@ \section{A disco test}\label{a-disco-test}}
409400
410401
\begin{Shaded}
411402
\begin{Highlighting}[]
412-
\CommentTok{# make sure we can send the defintion to the data warehouse}
403+
\CommentTok{# make sure we can send the definition to the data warehouse}
413404
\KeywordTok{display}\NormalTok{(high_cap)}
414405
\end{Highlighting}
415406
\end{Shaded}

docs/installation.html

+4-8
Original file line numberDiff line numberDiff line change
@@ -283,25 +283,21 @@ <h1><span class="header-section-number">4</span> Installation</h1>
283283
<p>Discoveryengine (and all packages we use in Prospect Developmemt) is installed on the R drive. The most important step to make sure you can access these packages is to set up your default library path to the shared packages repository.</p>
284284
<p>Run a quick test to see your current library path:</p>
285285
<pre class="sourceCode r"><code class="sourceCode r"><span class="kw">.libPaths</span>()</code></pre>
286-
<p>The first result returned shoud be “R:/Prospect Development/Prospect Analysis/pd-shared-r-packages”. If it’s not, follow the steps below to change your default library path.</p>
286+
<p>The first result returned shoud be “\\\\ur2.urel.berkeley.edu/ur_unitshares/Prospect Development/Prospect Analysis/pd-shared-r-packages”. If it’s not, follow the steps below to change your default library path.</p>
287287
<p>Step 1: Open a new RStudio session and run the following script:</p>
288288
<pre class="sourceCode r"><code class="sourceCode r"><span class="co"># the first part sets up the new package directory</span>
289-
package_dir &lt;-<span class="st"> &quot;R:/Prospect Development/Prospect Analysis/pd-shared-r-packages&quot;</span>
289+
package_dir &lt;-<span class="st"> &quot;\\\\ur2.urel.berkeley.edu/ur_unitshares/Prospect Development/Prospect Analysis/pd-shared-r-packages&quot;</span>
290290
<span class="cf">if</span> (<span class="op">!</span><span class="kw">dir.exists</span>(package_dir)) <span class="kw">dir.create</span>(package_dir, <span class="dt">recursive =</span> <span class="ot">TRUE</span>)
291291

292292
<span class="co"># then make a configuration file that notifies R of the new package directory</span>
293-
<span class="co"># change [username] to your actual username in your P drive - usually LastNameFirstInitial</span>
294-
env_file &lt;-<span class="st"> &quot;P:/[username]/.Renviron&quot;</span>
293+
<span class="co"># change [username] to your actual username in your P drive - usually your last name followed by your first initial</span>
295294
<span class="cf">if</span> (<span class="op">!</span><span class="kw">file.exists</span>(env_file)) <span class="kw">file.create</span>(env_file)
295+
env_file &lt;-<span class="st"> &quot;\\ur2.urel.berkeley.edu\UR_USERS\[username]&quot;</span>
296296

297297
<span class="co"># and add the new location to the configuration file</span>
298298
<span class="kw">cat</span>(<span class="st">&quot;</span><span class="ch">\n</span><span class="st">R_LIBS_USER=&#39;&quot;</span>, package_dir, <span class="st">&quot;&#39;&quot;</span>,
299299
<span class="dt">sep =</span> <span class="st">&quot;&quot;</span>, <span class="dt">file =</span> env_file, <span class="dt">append =</span> <span class="ot">TRUE</span>)</code></pre>
300300
<p>Step 2:</p>
301-
<p>Find the newly created .Renviron file. It will be in your P drive.</p>
302-
<p>Step 3:</p>
303-
<p>Move the .Renviron file to your Documents folder. This should be located in D:\Users\[username]\Documents. Simply drag and drop.</p>
304-
<p>Step 4:</p>
305301
<p>Quit your current RStudio session and open a new one. Try running the following test again:</p>
306302
<pre class="sourceCode r"><code class="sourceCode r"><span class="kw">.libPaths</span>()</code></pre>
307303
<p>If the PD shared packages depository is returned, you are ready to start using Disco Engine. If not, contact the Analytics Team to troubleshoot your situation.</p>

0 commit comments

Comments
 (0)