Skip to content

Commit 63bdad6

Browse files
committed
Add faq
1 parent 5b7d5d9 commit 63bdad6

35 files changed

Lines changed: 914 additions & 26 deletions

File tree

docs/_sources/blog_posts/renv_docker.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
(setting_rep_env)=
12
# Setting Up A Reproducible Environment
23

34
- By: Naeem Khoshnevis
@@ -276,8 +277,8 @@ docker run -it --rm \
276277
-p 8787:8787 \
277278
-e USER=user \
278279
-e PASSWORD=password \
279-
-v "[Path to Project A on your system]:/home/rstudio/Project_A" \
280-
-v "[Path to cache on your system]:/home/rstudio/cache" rvers
280+
-v "[Path to Project A on your system]:/home/user/Project_A" \
281+
-v "[Path to cache on your system]:/home/user/cache" rvers
281282
```
282283
283284
- **Step 4**: Open your browser and type `http://localhost:8787/`
Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
# Frequently Asked Questions
2+
3+
4+
<details><summary> <b>1)</b> I am following the steps in generating the docker development image in R; however, it seems the volume is not synchronized between the docker container and my host machine. Do you have any idea? </summary>
5+
<p>
6+
7+
This question is related to {ref}`setting_rep_env`. The problem can happen in case of using different username and volume mount path. Make sure that the 3 shown user are the same values.
8+
9+
```s
10+
docker run -it --rm \
11+
-p 8787:8787 \
12+
-e USER= --> user <-- \
13+
-e PASSWORD=password \
14+
-v "[Path to Project A on your system]:/home/ --> user <-- /Project_A" \
15+
-v "[Path to cache on your system]:/home/ -->user <-- /cache" rvers
16+
17+
```
18+
19+
</p>
20+
</details>
21+
22+
***********
23+
24+
<details><summary> <b>2)</b> Trying to load the package using <span style="background-color: #FDD3D0"> devtools::load_all() </span>, however, received <span style="background-color: #FDD3D0"> Error in dyn.load(dll_copy_file) : unable to load shared object, invalid ELF header </span>. </summary>
25+
<p>
26+
27+
This is mainly happens because the new docker container (possibliy run on Ubuntu) trying to use `.dll` cache file that is generated with other system. To resolve this issue, run the following command:
28+
29+
```r
30+
devtools::clean_dll()
31+
```
32+
33+
</p>
34+
</details>

docs/blog_posts/renv_docker.html

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -115,6 +115,11 @@ <h1 class="site-logo" id="site-title">NSAPH Software</h1>
115115
</span>
116116
</p>
117117
<ul class="nav bd-sidenav">
118+
<li class="toctree-l1">
119+
<a class="reference internal" href="../developers_zone/faq.html">
120+
Frequently Asked Questions
121+
</a>
122+
</li>
118123
<li class="toctree-l1">
119124
<a class="reference internal" href="../developers_zone/contribution.html">
120125
Contribution
@@ -353,7 +358,7 @@ <h2> Contents </h2>
353358
<div>
354359

355360
<div class="tex2jax_ignore mathjax_ignore section" id="setting-up-a-reproducible-environment">
356-
<h1>Setting Up A Reproducible Environment<a class="headerlink" href="#setting-up-a-reproducible-environment" title="Permalink to this headline"></a></h1>
361+
<span id="setting-rep-env"></span><h1>Setting Up A Reproducible Environment<a class="headerlink" href="#setting-up-a-reproducible-environment" title="Permalink to this headline"></a></h1>
357362
<ul class="simple">
358363
<li><p>By: Naeem Khoshnevis</p></li>
359364
<li><p>Last Update: May 22, 2022</p></li>
@@ -648,8 +653,8 @@ <h2>Managing System Dependencies<a class="headerlink" href="#managing-system-dep
648653
<span class="o">-</span><span class="n">p</span> <span class="m">8787</span><span class="o">:</span><span class="m">8787</span> \
649654
<span class="o">-</span><span class="n">e</span> <span class="n">USER</span><span class="o">=</span><span class="n">user</span> \
650655
<span class="o">-</span><span class="n">e</span> <span class="n">PASSWORD</span><span class="o">=</span><span class="n">password</span> \
651-
<span class="o">-</span><span class="n">v</span> <span class="s">&quot;[Path to Project A on your system]:/home/rstudio/Project_A&quot;</span> \
652-
<span class="o">-</span><span class="n">v</span> <span class="s">&quot;[Path to cache on your system]:/home/rstudio/cache&quot;</span> <span class="n">rvers</span>
656+
<span class="o">-</span><span class="n">v</span> <span class="s">&quot;[Path to Project A on your system]:/home/user/Project_A&quot;</span> \
657+
<span class="o">-</span><span class="n">v</span> <span class="s">&quot;[Path to cache on your system]:/home/user/cache&quot;</span> <span class="n">rvers</span>
653658
</pre></div>
654659
</div>
655660
<ul>

docs/developers_zone/contribution.html

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@
5454
<link rel="index" title="Index" href="../genindex.html" />
5555
<link rel="search" title="Search" href="../search.html" />
5656
<link rel="next" title="Styling Guide" href="styling_guide.html" />
57-
<link rel="prev" title="TBD" href="../research_gallery/TBD.html" />
57+
<link rel="prev" title="Frequently Asked Questions" href="faq.html" />
5858
<meta name="viewport" content="width=device-width, initial-scale=1" />
5959
<meta name="docsearch:language" content="None">
6060

@@ -116,6 +116,11 @@ <h1 class="site-logo" id="site-title">NSAPH Software</h1>
116116
</span>
117117
</p>
118118
<ul class="current nav bd-sidenav">
119+
<li class="toctree-l1">
120+
<a class="reference internal" href="faq.html">
121+
Frequently Asked Questions
122+
</a>
123+
</li>
119124
<li class="toctree-l1 current active">
120125
<a class="current reference internal" href="#">
121126
Contribution
@@ -409,11 +414,11 @@ <h2>Log Messages<a class="headerlink" href="#log-messages" title="Permalink to t
409414

410415
<!-- Previous / next buttons -->
411416
<div class='prev-next-area'>
412-
<a class='left-prev' id="prev-link" href="../research_gallery/TBD.html" title="previous page">
417+
<a class='left-prev' id="prev-link" href="faq.html" title="previous page">
413418
<i class="fas fa-angle-left"></i>
414419
<div class="prev-next-info">
415420
<p class="prev-next-subtitle">previous</p>
416-
<p class="prev-next-title">TBD</p>
421+
<p class="prev-next-title">Frequently Asked Questions</p>
417422
</div>
418423
</a>
419424
<a class='right-next' id="next-link" href="styling_guide.html" title="next page">

0 commit comments

Comments
 (0)