Skip to content

Commit 4a8a402

Browse files
committed
use roxygen2::load_source
1 parent 785c0ec commit 4a8a402

File tree

2 files changed

+3
-6
lines changed

2 files changed

+3
-6
lines changed

DESCRIPTION

+1-1
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ Suggests:
4141
knitr,
4242
pkgbuild,
4343
pkgload,
44-
roxygen2 (>= 6.0.1),
44+
roxygen2 (>= 7.0.1),
4545
rmarkdown,
4646
rstudioapi
4747
RoxygenNote: 7.1.1

vignettes/minimal-rstan-package.Rmd

+2-5
Original file line numberDiff line numberDiff line change
@@ -238,16 +238,13 @@ for `lm_stan` and update the `NAMESPACE` so the function is exported, i.e.,
238238
available to users when the package is installed. This can be done with the
239239
function `roxygen2::roxygenize()`.
240240

241-
```{r, results = "hide"}
242-
example(source) # defines the sourceDir() function
243-
```
244241
```{r, eval = FALSE}
245-
try(roxygen2::roxygenize(load_code = sourceDir), silent = TRUE)
242+
try(roxygen2::roxygenize(load_code = roxygen2::load_source), silent = TRUE)
246243
pkgbuild::compile_dll()
247244
roxygen2::roxygenize()
248245
```
249246
```{r, echo=FALSE}
250-
try(roxygen2::roxygenize(PATH, load_code = sourceDir), silent = TRUE)
247+
try(roxygen2::roxygenize(PATH, load_code = roxygen2::load_source), silent = TRUE)
251248
rm(lm_stan)
252249
pkgbuild::compile_dll(PATH)
253250
roxygen2::roxygenize(PATH)

0 commit comments

Comments
 (0)