I am trying to puild a package including a vignette. The focus of this package
is the generation of linkage tables connecting cancer diagnoses.
The following code is processed into a HTML document when invoked with
rmarkdown::render(), but fails to be processed with devtools::build_vignettes():
---
title: "staduicc"
output: rmarkdown::html_vignette
vignette: >
%\VignetteIndexEntry{staduicc}
%\VignetteEngine{knitr::rmarkdown}
%\VignetteEncoding{UTF-8}
---
```{r, include = FALSE}
knitr::opts_chunk$set(
collapse = TRUE,
comment = "#>"
)
```
# headline
```{r setup}
library(staduicc)
spieldatenpfad <- system.file("./inst/extdata/spieldaten.rda", package =
"staduicc")
message(spieldatenpfad)
load(spieldatenpfad)
```
<end of Rmd code>
The message which comes with running the code is as follows:
ℹ Installing staduicc in temporary library
ℹ Building vignettes for staduicc
--- re-building 'staduicc.Rmd' using rmarkdown
processing file: staduicc.Rmd
1/5
2/5 [unnamed-chunk-1]
3/5
4/5 [setup]
Quitting from staduicc.Rmd:19-24 [setup]
Error: processing vignette 'staduicc.Rmd' failed with diagnostics:
cannot open the connection
--- failed re-building 'staduicc.Rmd'
SUMMARY: processing the following file failed:
'staduicc.Rmd'
Error:
! in callr subprocess.
Caused by error:
! Vignette re-building failed.
ℹ See `$stdout` and `$stderr` for standard output and error.
Type .Last.error to see the more details.
<end of error messages>
I am suspecting it may have something to do which how system.path() is
processed. But I’ll gladly take any hint that is more specific than my musings.
Dr. Johannes Hüsing
Epidemiologie
Landeskrebsregister NRW gGmbH
Gesundheitscampus 10
44801 Bochum
T 0234 54509-216
F 0234 54509-499
[email protected]<mailto:[email protected]>
www.landeskrebsregister.nrw<http://www.landeskrebsregister.nrw>
Das Landeskrebsregister NRW online
FACEBOOK: https://www.facebook.com/LKRNordrheinWestfalen/
INSTAGRAM: https://www.instagram.com/landeskrebsregister_nrw
LINKEDIN: https://www.linkedin.com/company/87452209/admin/feed/posts/
Newsletter LKR NRW - jetzt anmelden unter
https://www.landeskrebsregister.nrw/aktuelles/newsletter
Geschäftsführer
Dr. Andres Schützendübel
Vorsitzender der Gesellschafterversammlung
Staatssekretär Matthias Heidmeier
Sitz der Gesellschaft
Bochum
Registergericht
Amtsgericht Bochum
HRB 17715
HINWEIS: Diese Nachricht ist nur für den Adressaten bestimmt. Es ist nicht
erlaubt, diese Nachricht zu kopieren oder Dritten zugänglich zu machen. Sollten
Sie irrtümlich diese Nachricht erhalten haben, bitte ich um Ihre Mitteilung per
E-Mail oder unter der oben angegebenen Telefonnummer.
[[alternative HTML version deleted]]
______________________________________________
[email protected] mailing list
https://stat.ethz.ch/mailman/listinfo/r-package-devel