@@ -9,12 +9,61 @@ vignette: >
9
9
%\VignetteEncoding{UTF-8}
10
10
---
11
11
12
+ ``` {=html}
13
+ <style>
14
+ .sourceCode pre {
15
+ background-color: #f7f7f7;
16
+ padding: 10px;
17
+ border: 1px solid #ccc;
18
+ border-radius: 5px;
19
+ overflow-x: auto;
20
+ position: relative;
21
+ }
22
+
23
+ .copy-btn {
24
+ position: absolute;
25
+ top: 10px;
26
+ right: 10px;
27
+ border: none;
28
+ background: #4CAF50;
29
+ color: white;
30
+ padding: 5px 10px;
31
+ cursor: pointer;
32
+ border-radius: 5px;
33
+ }
34
+
35
+ .copy-btn:hover {
36
+ background: #45a049;
37
+ }
38
+ </style>
39
+ ```
40
+
41
+ <script >
42
+ document .addEventListener (" DOMContentLoaded" , function () {
43
+ document .querySelectorAll (" .sourceCode pre" ).forEach (function (block ) {
44
+ var button = document .createElement (" button" );
45
+ button .innerHTML = " Copy" ;
46
+ button .className = " copy-btn" ;
47
+ block .appendChild (button);
48
+
49
+ button .addEventListener (" click" , function () {
50
+ var code = block .innerText ;
51
+ navigator .clipboard .writeText (code).then (function () {
52
+ button .innerHTML = " Copied!" ;
53
+ setTimeout (function () {
54
+ button .innerHTML = " Copy" ;
55
+ }, 2000 );
56
+ });
57
+ });
58
+ });
59
+ });
60
+ </script >
61
+
12
62
# Pulling the ` Docker ` Container
13
63
14
64
Pull ` Docker ` container:
15
65
16
66
``` {r eval=FALSE}
17
- # Docker Hub repo still private, will make it public then
18
67
docker pull thomasrauter/splineomics:0.1.0
19
68
```
20
69
@@ -33,6 +82,7 @@ docker run -it -d \
33
82
-v $(pwd)/output:/home/rstudio/output \
34
83
-p 8888:8787 \
35
84
-e PASSWORD=123 \
85
+ -u $(id -u):$(id -g) \ # Ensure same user/group ID as host
36
86
--name splineomics \
37
87
thomasrauter/splineomics:0.1.0
38
88
```
0 commit comments