Error render function: "path for html_dependency not provided"!

4,132 views
Skip to first unread message

Ivan Bezerra Allaman

unread,
Aug 12, 2014, 4:51:47 PM8/12/14
to kn...@googlegroups.com
Hi!

I'm using knitr + rmarkdown to use the render function without success. The error generated when I try to use it: 

render ('input.Rmd', 'html_document') 

Error: path is not provided html_dependency. 

In the official website there is nothing to indicate a relative path or something. Simply say that we can use render ('input.Rmd') and voila! It's not like it's working! 

Not sure this is the correct group to post this, but I found a specific group for that. 

Could anyone help me?

Thank's!

Yihui Xie

unread,
Aug 14, 2014, 5:59:52 PM8/14/14
to Ivan Bezerra Allaman, knitr
Please attach your input.Rmd, as well as the output of

library(rmarkdown)
sessionInfo()

You may need to update your R packages and retry before you post back. Thanks!

Regards,
Yihui
--
Yihui Xie <xiey...@gmail.com>
Web: http://yihui.name

Ivan Bezerra Allaman

unread,
Aug 15, 2014, 6:04:26 AM8/15/14
to Yihui Xie, knitr
Just like you I am also a developer of packages and thus keep them always updated. Here's what you asked me.

R version 3.1.1 (2014-07-10)
Platform: x86_64-pc-linux-gnu (64-bit)

locale:
 [1] LC_CTYPE=pt_BR.utf8       LC_NUMERIC=C             
 [3] LC_TIME=pt_BR.utf8        LC_COLLATE=pt_BR.utf8    
 [5] LC_MONETARY=pt_BR.utf8    LC_MESSAGES=pt_BR.utf8   
 [7] LC_PAPER=pt_BR.utf8       LC_NAME=C                
 [9] LC_ADDRESS=C              LC_TELEPHONE=C           
[11] LC_MEASUREMENT=pt_BR.utf8 LC_IDENTIFICATION=C      

attached base packages:
[1] datasets  splines   grid      stats     graphics  grDevices utils    
[8] methods   base     

other attached packages:
 [1] vimcom_1.0-0     colorout_1.0-1   setwidth_1.0-3   pander_0.3.8    
 [5] knitr_1.6        rmarkdown_0.2.57 shiny_0.10.1     multcomp_1.3-5  
 [9] TH.data_1.0-3    survival_2.37-7  mvtnorm_1.0-0    car_2.0-20      
[13] ggplot2_1.0.0    TukeyC_1.1-4     fdth_1.1-8      

loaded via a namespace (and not attached):
 [1] bitops_1.0-6     caTools_1.17     colorspace_1.2-4 digest_0.6.4    
 [5] evaluate_0.5.5   formatR_0.10     gtable_0.1.2     htmltools_0.2.4 
 [9] httpuv_1.3.0     lattice_0.20-29  MASS_7.3-33      munsell_0.4.2   
[13] nnet_7.3-8       plyr_1.8.1       proto_0.3-10     Rcpp_0.11.2     
[17] reshape2_1.4     RJSONIO_1.3-0    sandwich_2.3-1   scales_0.2.4    
[21] stringr_0.6.2    tools_3.1.1      xtable_1.7-3     zoo_1.7-11      

--
\begin{signature} 
<<>>= 
Prof. D.Sc. Ivan Bezerra Allaman 
Universidade Estadual de Santa Cruz 
Departamento de Ciências Exatas e Tecnológicas 
Ilhéus/BA - Brasil 
Fone: +55 73 3680-5596 
E-mail: ivana...@yahoo.com.br/ivana...@gmail.com 

\end{signature}
input.Rmd

Yihui Xie

unread,
Aug 22, 2014, 1:21:55 PM8/22/14
to Ivan Bezerra Allaman, knitr
You should call rmarkdown::run() instead of render() because it is a
shiny document (http://rmarkdown.rstudio.com/authoring_shiny.html).

Regards,
Yihui
--
Yihui Xie <xiey...@gmail.com>
Web: http://yihui.name


Ivan Bezerra Allaman

unread,
Aug 22, 2014, 1:32:52 PM8/22/14
to Yihui Xie, knitr
Yes, yes, yes, !!!
Message has been deleted
Message has been deleted

Jeff van Geete

unread,
Jun 12, 2018, 1:52:49 AM6/12/18
to knitr
Do you have runtime: shiny in your yaml header?
Reply all
Reply to author
Forward
0 new messages