Displaying 9 results from an estimated 9 matches for "skylineconfig".
2018 Jul 09
2
Parametrized Vignettest in R packages
...quot;tibble" while
> configuration is an "R6" class.
> But I also have parametrized reports where I pass R reference classes
> as arguments.
>
> This is the Rmd yaml params part corresponding to the error message.
>
> params:
> configuration: !r get(data(skylineconfig))
> data: !r get(data(sample_analysis))
>
> Might the 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 encounterin...
2018 Jul 09
3
Parametrized Vignettest in R packages
...gmail.com> wrote:
> On 09/07/2018 8:49 AM, Witold E Wolski wrote:
>>
>> Dear Duncan,
>>
>> Following your advice (Thank you for it) I did include into the vignettes
>> params:
>> configuration: !r get(data(sample_analysis))
>> data: !r get(data(skylineconfig))
>>
>> And everything seemed (see below) to work fine.
>> devtools::build_vignettes() builds the vignettes.
>>
>> Runs with NO error. By this the .Rmd file, html file and corresponding
>> .R files is being placed into the inst/doc directory.
>>
>> Ho...
2018 Jul 02
2
Parametrized Vignettest in R packages
...llo,
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 = "html_document",
params = list(data = sample_analysis,
configuration =
skylineconfig),envir = new.env())
<code>
I do not think I can write:
params:
config...
2018 Jul 09
2
Parametrized Vignettest in R packages
Dear Duncan,
Following your advice (Thank you for it) I did include into the vignettes
params:
configuration: !r get(data(sample_analysis))
data: !r get(data(skylineconfig))
And everything seemed (see below) to work fine.
devtools::build_vignettes() builds the vignettes.
Runs with NO error. By this the .Rmd file, html file and corresponding
.R files is being placed into the inst/doc directory.
However, when I did want to check the package by running
devtools::chec...
2018 Jul 09
0
Parametrized Vignettest in R packages
...luable questions.
sample_analysis is a "tibble" while
configuration is an "R6" class.
But I also have parametrized reports where I pass R reference classes
as arguments.
This is the Rmd yaml params part corresponding to the error message.
params:
configuration: !r get(data(skylineconfig))
data: !r get(data(sample_analysis))
Might the 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(...
2018 Jul 09
0
Parametrized Vignettest in R packages
...ote 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_document: default
params:
configuration: !r quote(...
2018 Jul 09
0
Parametrized Vignettest in R packages
On 09/07/2018 8:49 AM, Witold E Wolski wrote:
> Dear Duncan,
>
> Following your advice (Thank you for it) I did include into the vignettes
> params:
> configuration: !r get(data(sample_analysis))
> data: !r get(data(skylineconfig))
>
> And everything seemed (see below) to work fine.
> devtools::build_vignettes() builds the vignettes.
>
> Runs with NO error. By this the .Rmd file, html file and corresponding
> .R files is being placed into the inst/doc directory.
>
> However, when I did want to che...
2018 Jul 02
0
Parametrized Vignettest in R packages
...ning 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 = "html_document",
> params = list(data = sample_analysis,
> configuration =
> skylineconfig),envir = new.env())
> <code>
>
> I do not...
2018 Jul 02
4
Parametrized Vignettest in R packages
Hello,
I have a package which includes some parameterized r-markdown report
which I would also like to build as package vignettes.
Is there a way to run the parameterized vignette creation with the
package build or package check?
Thank you
--
Witold Eryk Wolski