search for: html_document

Displaying 17 results from an estimated 17 matches for "html_document".

2006 Dec 04
5
ruby on rails ecommerce tests are failing, but why?
i am working through the Beginning Ruby on Rails Ecommerce book and on page 101 where it is talking about integration tests, i run test/integration/book_test.rb and it fails giving me the following error message: 1) Failure: test_book_administration(BookTest) [test/integration/book_test.rb:45:in `add_book'' test/integration/book_test.rb:11:in `test_book_administration''
2018 Jul 02
2
Parametrized Vignettest in R packages
...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: configuration: !r data(sample_analysis) data: !r data(skylineconfig) since data does not r...
2005 Oct 10
1
ActionPack tests are failing
...rb:41:in `childless?'' ./test/controller/../../lib/action_controller/vendor/html-scanner/html/document.rb:41:in `initialize'' ./test/controller/../../lib/action_controller/test_process.rb:353:in `new'' ./test/controller/../../lib/action_controller/test_process.rb:353:in `html_document'' ./test/controller/../../lib/action_controller/test_process.rb:357:in `find_tag'' ./test/controller/../../lib/action_controller/assertions.rb:242:in `assert_tag'' ./test/controller/action_pack_assertions_test.rb:118:in `test_assert_tag_and_url_for'' I''m...
2017 Jun 07
1
rmarkdown and font size
...ave a file (named "tmp.rmd") containing: --- title: Test --- ```{r example, echo=FALSE, results='asis'} tmp <- data.frame(a=1:5, b=letters[1:5]) print( knitr::kable(tmp, row.names=FALSE)) ``` And I render it with: rmarkdown::render('tmp.rmd', output_format=c('html_document','pdf_document')) I get two files: tmp.pdf tmp.html Is there a way to control (change or specify) the font size of the table in the pdf output? (or of the entire document, if it can't be changed for just the table) With my actual data, the table is too wide to fit on a page i...
2018 Jul 09
2
Parametrized Vignettest in R packages
...> 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: >> configurati...
2007 Mar 19
3
Assert_select
Hi all This is my first post here. I ave been using Rails for a couple of months, and am starting to put together a test suite. But I''m having a problem with assert_select in my functional tests. According to the documentation, it should be fine with two arguments - a CSS selector and a string to test it against. But no matter what I do I keep getting the exception: wrong number of
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
3
Parametrized Vignettest in R packages
...fault 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:...
2018 Jul 02
0
Parametrized Vignettest in R packages
...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: > configuration: !r data(sample_analysis) >...
2018 Jul 09
0
Parametrized Vignettest in R packages
...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(get(data(skylineconfig, package="myPackage"))) data: !r quote(get(data(sample_analysis, package="myPackage"))) vignette: > %\VignetteIndexEntry{Summarize Peptide Level Measurements} %\VignetteEngine{knitr::rmarkdown} %\Vigne...
2018 Nov 07
1
Problem building rmarkdown vignettes with child
Hello, This is a problem I posted about already some time ago: https://stat.ethz.ch/pipermail/r-devel/2018-September/076786.html Finally, I did had some time to create a minimal package to reproduce the problem that vignettes with child can not be build. https://github.com/wolski/RmarkdownVignetteProblem The problem basically is that while all the vignettes can be build by running
2018 Feb 21
0
Adding a table of contents to html output using the bookdown package
I am trying to get rmarkdown with bookdown to include a table of contents in html output, and having trouble. Here is an example that I think illustrates the trouble. I have a file "test.Rmd" as follows: [127]% cat test.Rmd --- title: Test Document output: html_document: toc: true --- # Introduction some text # A section some more text [128]% If I run: library(rmarkdown) render('test.Rmd') I get a table of contents in the html file (test.html). Nice. However, for more flexibility in switching back and forth between html, pdf, and Word output,...
2018 Jul 09
0
Parametrized Vignettest in R packages
...ign 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: >>> >>&g...
2017 Jun 13
0
WG: Fw: Re: rmarkdown and font size
...results='asis'} > > tmp <- data.frame(a=1:5, b=letters[1:5]) > > print( knitr::kable(tmp, row.names=FALSE)) > > ``` > > > > > > > > And I render it with: > > > > rmarkdown::render('tmp.rmd', > > output_format=c('html_document','pdf_document')) > > > > I get two files: > > tmp.pdf > > tmp.html > > > > Is there a way to control (change or specify) the font size of the table in the > > pdf output? > > (or of the entire document, if it can't be changed f...
2007 Nov 17
0
rake errors
..... require ''action_controller/integration'' namespace :actions do desc "update facebook profiles" task(:update_profiles => :environment) do app = ActionController::Integration::Session.new; app.get(''/facebook/update_profiles'') puts app.html_document.root.to_s end end controller action.... def update_profiles @users=FacebookUser.find(:all) @articles = Article.find(:all, :conditions=>"created_at<now() and status>0 and section_id!=13",:limit=>5, :order=>''created_at DESC'' ) fbsession.a...
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
...;>>> 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 d...