Skip to content

Commit d805fb8

Browse files
committed
rmarkdown -> quarto vignettes
fix: Found the following (possibly) invalid URLs: URL: http://localhost:3838/app From: inst/doc/making-a-dockitect-dockerfile-into-a-running-container.html Status: Error Message: Could not connect to server [localhost]: Failed to connect to localhost port 3838 after 2253 ms: Could not connect to server URL: https://www.rocker-project.org/ (moved to https://rocker-project.org/) From: inst/doc/making-a-dockitect-dockerfile-into-a-running-container.html Status: 301 Message: Moved Permanently For content that is 'Moved Permanently', please change http to https, add trailing slashes, or replace the old by the new URL.
1 parent 3e48cf9 commit d805fb8

File tree

6 files changed

+27
-18
lines changed

6 files changed

+27
-18
lines changed

.Rbuildignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,3 +9,5 @@
99
^\.Rproj\.user$
1010
^Dockerfile$
1111
^\.dockerignore$
12+
^vignettes/\.quarto$
13+
^vignettes/*_files$

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,3 +7,4 @@ docs
77
inst/doc
88
.dockerignore
99
Dockerfile
10+
**/.quarto/

DESCRIPTION

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,10 +22,10 @@ Imports:
2222
jsonlite
2323
Suggests:
2424
knitr,
25-
rmarkdown,
25+
quarto,
2626
testthat (>= 3.0.0)
2727
Encoding: UTF-8
2828
Roxygen: list(markdown = TRUE)
2929
RoxygenNote: 7.3.2
30+
VignetteBuilder: quarto
3031
Config/testthat/edition: 3
31-
VignetteBuilder: knitr

vignettes/.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
11
*.html
22
*.R
3+
*_files

vignettes/getting-started-with-dockitect.Rmd renamed to vignettes/getting-started-with-dockitect.qmd

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,17 @@
11
---
22
title: "Getting Started with dockitect"
3-
output: rmarkdown::html_vignette
43
vignette: >
54
%\VignetteIndexEntry{Getting Started with dockitect}
6-
%\VignetteEngine{knitr::rmarkdown}
5+
%\VignetteEngine{quarto::html}
76
%\VignetteEncoding{UTF-8}
7+
knitr:
8+
opts_chunk:
9+
collapse: true
10+
comment: '#>'
811
---
912

10-
```{r, include = FALSE}
11-
knitr::opts_chunk$set(
12-
collapse = TRUE,
13-
comment = "#>"
14-
)
13+
```{r}
14+
#| include: false
1515
1616
Sys.setenv(R_USER_CACHE_DIR = tempfile())
1717
```

vignettes/making-a-dockitect-dockerfile-into-a-running-container.Rmd renamed to vignettes/making-a-dockitect-dockerfile-into-a-running-container.qmd

Lines changed: 14 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,17 @@
11
---
22
title: "Making a dockitect Dockerfile into a Running Container"
3-
output: rmarkdown::html_vignette
43
vignette: >
54
%\VignetteIndexEntry{Making a dockitect Dockerfile into a Running Container}
6-
%\VignetteEngine{knitr::rmarkdown}
5+
%\VignetteEngine{quarto::html}
76
%\VignetteEncoding{UTF-8}
7+
knitr:
8+
opts_chunk:
9+
collapse: true
10+
comment: '#>'
811
---
912

10-
```{r, include = FALSE}
11-
knitr::opts_chunk$set(
12-
collapse = TRUE,
13-
comment = "#>"
14-
)
13+
```{r}
14+
#| include: false
1515
1616
Sys.setenv(R_USER_CACHE_DIR = tempfile())
1717
```
@@ -143,7 +143,12 @@ docker build --platform linux/amd64 -t my-shiny-app .
143143
docker run -p 3838:3838 my-shiny-app
144144
```
145145

146-
Now you can access your Shiny app by navigating to <http://localhost:3838/app> in your web browser.
146+
Now, you can access your Shiny app by navigating
147+
in your web browser to:
148+
149+
```default
150+
http://localhost:3838/app
151+
```
147152

148153
### Running an R Script with Volume Mounting
149154

@@ -239,5 +244,5 @@ vignette covered the basics of working with Docker after generating your
239244
`Dockerfile` via `{dockitect}`.
240245

241246
For more information, consult the [Docker documentation](https://docs.docker.com/)
242-
or the [Rocker project](https://www.rocker-project.org/) which provides pre-built
247+
or the [Rocker project](https://rocker-project.org/) which provides pre-built
243248
Docker images for R.

0 commit comments

Comments
 (0)