similar to: Parametrized Vignettest in R packages

Displaying 20 results from an estimated 5000 matches similar to: "Parametrized Vignettest in R packages"

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 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 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
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
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 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 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
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 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 <-
2016 Dec 12
2
accessing data by packagename::dataname from within package code fails.
I have narrowed down the problem. The error Error : 'AminoAcids' is not an exported object from 'namespace:bibliospec' Error : unable to load R code in package 'bibliospec' occurs only if I try to access the data using bibliospec::AminoAcids within the initialize method of an R reference class. It does work, as far as I tested everywhere else. In other methods of a
2018 Oct 05
1
unable to load shared object
Thanks for asking. The path where R tries to load the dll from does not exist I think (or the install process deletes it after the error - might this be the case?): C:/Users/wewol/OneDrive/Documents/R/win-library/3.5/grpc/libs/x64/grpc.dll' When I am checking after the error that path is only valid up to: C:/Users/wewol/OneDrive/Documents/R/win-library/3.5/ So maybe (?) the install process
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 <-
2010 Aug 09
3
ESS question. How to get rid of ess-smart-underscore?
Hi, ESS replaces "_" by "<-". How can I switch off this feature? I need to be able to type the underscore Thanks Eryk -- Witold Eryk Wolski Heidmark str 5 D-28329 Bremen tel.: 04215261837
2018 Oct 02
1
How do I set a compile flag _WIN32_WINNT=0x600 in Makevars.Win
Sorry for bothering you I am trying to build the R grpc package on windows: https://github.com/nfultz/grpc against an MSYS2 build of grpc. when running devtools::install() I am getting the following error: C:/msys64/mingw64/include/grpc/impl/codegen/port_platform.h:47:2: error: #error "Please compile grpc with _WIN32_WINNT of at least 0x600 (aka Windows Vista)" #error \ ^ Which,
2012 Sep 20
2
Sweave - if \Sexpr{} than \SweaveInput{"my.Rnw"}
Depending on an R computation I would like to include an Sweave documents in the main Sweave document. How can I do it? So I was thinking .... to use Latex features : \newif\ifpaper \ifpaper \SweaveInput{"my1.Rnw"} \else \SweaveInput{"my2.Rnw"} \fi But how do I set paper to true or false given an \Sexpr ?? \papertrue % or \paperfalse Any ideas? cheers -- Witold
2012 Nov 08
1
sweave xtable and driver RweaveHTML
Hi, So far I used Sweave to create pdf reports. I used xtable to create some tables in the report. But now I would like to use the same snw file to generate an HTML version. The xtable output breaks the RweaveHTML driver. library(R2HTML) Sweave('analyseLFQ.Snw', driver = RweaveHTML) Error in match.arg(options$results, c("Robj", "html", "hide")) :
2006 May 25
2
qqmath - Lattice error
Hi, Don't have a clue what teh following error message generated by this function call: qqmath( ~val|ind,data = xx ,distribution = function(p){ qt(p,df=20)} ,ylab="Sample Quatinles" ,xlab="Theoretical Quantiles" ,panel=function(x,y) { panel.qqmathline(y , distribution=function(p) qt(p,df=20)
2004 Oct 21
3
error in plot.dendrogram (PR#7300)
Hi, hres <- hclust(smatr,method="single") hresd<-as.dendrogram(hres) as.dendrogram(hres) `dendrogram' with 2 branches and 380 members total, at height 2514.513 plot(hresd,leaflab="none") #<-error here. #the plotted dendrogram is incomplete. The x axis is not drawn. #The interested reader can download the save(hresd,file="hres.rda") #from the
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
2004 Nov 24
12
scatterplot of 100000 points and pdf file format
Hi, I want to draw a scatter plot with 1M and more points and save it as pdf. This makes the pdf file large. So i tried to save the file first as png and than convert it to pdf. This looks OK if printed but if viewed e.g. with acrobat as document figure the quality is bad. Anyone knows a way to reduce the size but keep the quality? /E -- Dipl. bio-chem. Witold Eryk Wolski MPI-Moleculare