Posts

Showing posts with the label r-markdown

Error when-> output: rticles::plos_article used in RMarkdown,

Image
Clash Royale CLAN TAG #URR8PPP Error when-> output: rticles::plos_article used in RMarkdown, When I used, Output: rticles::plos_article in RMarkdown, I get the following error after I knit the .Rcode ! Package pdftex.def Error: File `PLOS-submission-eps-converted-to.pdf' not found: using draft setting. The output using xfun::session_info(c('tinytex', 'rmarkdown')) is R version 3.3.1 (2016-06-21) Platform: x86_64-apple-darwin13.4.0 (64-bit) Running under: OS X 10.11.5 (El Capitan), RStudio 0.99.903 Locale: en_US.UTF-8 / en_US.UTF-8 / en_US.UTF-8 / C / en_US.UTF-8 / en_US.UTF-8 Package version: backports_1.1.0 base64enc_0.1.3 digest_0.6.13 evaluate_0.10.1 graphics_3.3.1 grDevices_3.3.1 highr_0.6 htmltools_0.3.6 jsonlite_1.5 knitr_1.20 magrittr_1.5 markdown_0.8 methods_3.3.1 mime_0.5 Rcpp_0.12.14 rmarkdown_1.10 rprojroot_1.2 stats_3.3.1 stringi_1.1.5 stringr_1.2.0 tinytex_0.6.4 tools_3.3.1 utils_3.3.1 ...

How can I stop by code blocks from splitting in preview of R Notebook?

Image
Clash Royale CLAN TAG #URR8PPP How can I stop by code blocks from splitting in preview of R Notebook? ```{r scatterplots, collapse=TRUE, results= 'hold'} p1 <- ggplot(x, aes(y=f.ecdf, x=P2))+geom_point()+theme_bw() p2 <- ggplot(x, aes(y=f.ecdf, x=P2))+geom_point()+theme_bw() p3 <- ggplot(x, aes(y=f.ecdf, x=G1))+geom_point()+theme_bw() p4 <- ggplot(x, aes(y=f.ecdf, x=G2))+geom_point()+theme_bw() p5 <- ggplot(x, aes(y=f.ecdf, x=P2))+geom_point()+theme_bw() p6 <- ggplot(x, aes(y=f.ecdf, x=P2))+geom_point()+theme_bw() p7 <- ggplot(x, aes(y=f.ecdf, x=G1))+geom_point()+theme_bw() p8 <- ggplot(x, aes(y=f.ecdf, x=G2))+geom_point()+theme_bw() grid.arrange( p1, p2, p3, p4, ncol = 2 ) grid.arrange( p5, p6, p7, p8, ncol = 2 ) ``` But in preview the code chunks are being evaluated after splitting. How can I stop this from happening. Basically, I want all plots to flow interrupted. What other information can I provide to diagnose this? ...