search for: vignettest

Displaying 13 results from an estimated 13 matches for "vignettest".

Did you mean: vignettes
2018 Jul 02
0
Parametrized Vignettest in R packages
On 02/07/2018 10:30 AM, Witold E Wolski wrote: > 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? Doesn't the usual method work? You can specify defaults for parameters in the
2018 Jul 02
0
Parametrized Vignettest in R packages
On 02/07/2018 11:22 AM, Witold E Wolski wrote: > 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> >
2018 Jul 09
0
Parametrized Vignettest in R packages
Dear Duncan, Was close to giving up to use the parameterized rmarkown 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",
2018 Jul 10
0
RMarkdown Vignettest in R packages with child is failing in package build
On 10/07/2018 11:44 AM, Witold E Wolski wrote: > Dear List, > > I am working on moving some Rmarkdown reports into the vignettes > folder of a package. While I was able to solve to problem of > parametrized reports in vignettes folder thanks to your invaluable > help (Thank you), I am now struggling with the following problem. > > > One of the reports which I am
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
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
2018 Jul 09
0
Parametrized Vignettest in R packages
Dear Yihui, Thank you for the valuable 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
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 =
2018 Jul 10
2
RMarkdown Vignettest in R packages with child is failing in package build
Dear List, I am working on moving some Rmarkdown reports into the vignettes folder of a package. While I was able to solve to problem of parametrized reports in vignettes folder thanks to your invaluable help (Thank you), I am now struggling with the following problem. One of the reports which I am moving to vignettes includes the following code : ```{r} child_docs <-
2018 Jul 13
1
RMarkdown Vignettest in R packages with child is failing in package build
Dear Duncan, Thank you, got it working with your advice. I did placed the child markdown documents into inst/ParametrizedReportsChild And this is the code in the main vignette by which I include them: child_docs <- "Grp2Analysis_MissingInOneCondtion.Rmd_t" if(!sum(NAinfo$nrProteins > 0) > 0){ child_docs <- "Grp2Analysis_Empty.Rmd_t" } child_docs <-
2018 Jul 09
2
Parametrized Vignettest in R packages
On 09/07/2018 3:24 PM, Witold E Wolski wrote: > Dear Yihui, > > Thank you for the valuable 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. > >
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
2018 Jul 09
3
Parametrized Vignettest in R packages
So far you haven't provided a reproducible example yet. I wonder what exactly the object `sample_analysis` is. Sounds like it is an environment. If that is the case, devtools::build_vignettes() will tangle (for the meaning of "tangle", see ?tools::buildVignette) your vignette into an invalid R script. Environments cannot be represented via dput(), so knitr's purl() (eventually