Skip to content

Commit d85a2df

Browse files
committed
updated dependency version of openxl and Docker instructions vignette
1 parent 1b82f8c commit d85a2df

File tree

2 files changed

+52
-2
lines changed

2 files changed

+52
-2
lines changed

DESCRIPTION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ Imports:
1818
ggrepel(>= 0.9.5),
1919
here(>= 1.0.1),
2020
limma(>= 3.58.1),
21-
openxlsx(>= 4.2.6.1),
21+
openxlsx(>= 4.2.5.2),
2222
patchwork(>= 1.2.0),
2323
pheatmap(>= 1.0.12),
2424
progress(>= 1.2.3),

vignettes/Docker-instructions.Rmd

Lines changed: 51 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,12 +9,61 @@ vignette: >
99
%\VignetteEncoding{UTF-8}
1010
---
1111

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+
1262
# Pulling the `Docker` Container
1363

1464
Pull `Docker` container:
1565

1666
```{r eval=FALSE}
17-
# Docker Hub repo still private, will make it public then
1867
docker pull thomasrauter/splineomics:0.1.0
1968
```
2069

@@ -33,6 +82,7 @@ docker run -it -d \
3382
-v $(pwd)/output:/home/rstudio/output \
3483
-p 8888:8787 \
3584
-e PASSWORD=123 \
85+
-u $(id -u):$(id -g) \ # Ensure same user/group ID as host
3686
--name splineomics \
3787
thomasrauter/splineomics:0.1.0
3888
```

0 commit comments

Comments
 (0)