Displaying 7 results from an estimated 7 matches for "tr_srm_summary".
2018 Jul 09
3
Parametrized Vignettest in R packages
...o check the package by running
>> devtools::check(build_args="--no-build-vignettes")
>>
>> The following warning is shown:
>>
>> Warning: parse error in file
>>
>> 'C:/Users/wolski/AppData/Local/Temp/Rtmp4QanHv/SRMService.Rcheck/SRMService/doc/tr_srm_summary.R':
>>
>> /Users/wolski/AppData/Local/Temp/Rtmp4QanHv/SRMService.Rcheck/SRMService/doc/tr_srm_summary.R:2:22:
>> unexpected '<'
>> 1: params <-
>> 2: list(configuration = <
>>
>> This is how the start of the .R file produced from the vi...
2018 Jul 09
2
Parametrized Vignettest in R packages
...aced into the inst/doc directory.
However, when I did want to check the package by running
devtools::check(build_args="--no-build-vignettes")
The following warning is shown:
Warning: parse error in file
'C:/Users/wolski/AppData/Local/Temp/Rtmp4QanHv/SRMService.Rcheck/SRMService/doc/tr_srm_summary.R':
/Users/wolski/AppData/Local/Temp/Rtmp4QanHv/SRMService.Rcheck/SRMService/doc/tr_srm_summary.R:2:22:
unexpected '<'
1: params <-
2: list(configuration = <
This is how the start of the .R file produced from the vignette looks like.
params <-
list(configuration = <envi...
2018 Jul 09
2
Parametrized Vignettest in R packages
...of the
> problem here? I have heard somewhere that R6 uses environments to
> implemented some features.
>
>
>
> There is also a further problem I am encountering reproducible when
> running devtools::install() or R CMD INSTALL
>
> ** installing vignettes
> 'tr_srm_summary.Rmd' using 'UTF-8'
> Warning in data(skylineconfig) : data set 'skylineconfig' not found
> Error in get(data(skylineconfig)) : object 'skylineconfig' not found
You likely need to specify the package name, e.g.
data("skylineconfig", package = "yourp...
2018 Jul 09
0
Parametrized Vignettest in R packages
...R6 class which I pass to configuration the source of the
problem here? I have heard somewhere that R6 uses environments to
implemented some features.
There is also a further problem I am encountering reproducible when
running devtools::install() or R CMD INSTALL
** installing vignettes
'tr_srm_summary.Rmd' using 'UTF-8'
Warning in data(skylineconfig) : data set 'skylineconfig' not found
Error in get(data(skylineconfig)) : object 'skylineconfig' not found
This problem isn't happening when running
devtools::build_vignettes()
The Package install works however if I...
2018 Jul 09
0
Parametrized Vignettest in R packages
...> However, when I did want to check the package by running
> devtools::check(build_args="--no-build-vignettes")
>
> The following warning is shown:
>
> Warning: parse error in file
> 'C:/Users/wolski/AppData/Local/Temp/Rtmp4QanHv/SRMService.Rcheck/SRMService/doc/tr_srm_summary.R':
> /Users/wolski/AppData/Local/Temp/Rtmp4QanHv/SRMService.Rcheck/SRMService/doc/tr_srm_summary.R:2:22:
> unexpected '<'
> 1: params <-
> 2: list(configuration = <
>
> This is how the start of the .R file produced from the vignette looks like.
>
> pa...
2018 Jul 09
0
Parametrized Vignettest in R packages
...markown as vignettes.
But your suggestions to use quote and eval, as well as to use the
package parameter in data
made it work, with all devtools::install,check,build and
build_vignettes as well as with R CMD ... etc.
But most importantly it also still works with:
rmarkdown::render("vignettes/tr_srm_summary.Rmd",
params=list(configuration=skylineconfig, data=sample_analysis ))
THANK YOU.
This is how my vignette header looks (see below) and it works.
---
title: "Titel"
author: "WEW at FGCZ.ETHZ.CH"
date: "`r Sys.Date()`"
output:
pdf_document: default
html_do...
2018 Jul 02
2
Parametrized Vignettest in R packages
Hello,
Thank you for the questions as well as remaining me of the default
parameters in the yaml session.
Indeed this seems to be the solution.
But how would I assign package data as a default parameter?
So originally I thought to render the markdown with :
<code>
data(sample_analysis)
data(skylineconfig)
x <- rmarkdown::render("report.Rmd", output_format =