我正在关注Rbloggers中的一个教程并发现使用双冒号,我在线查看,但我找不到他们使用的解释.这是他们使用的一个例子.
df <- dplyr::data_frame(
year = c(2015, NA, NA, NA),
trt = c("A", NA, "B", NA)
)
Run Code Online (Sandbox Code Playgroud)
我知道它会创建一个数据框,但我不明白它们的用途.
我在论坛中搜索了答案,但它们似乎没有用.
我正在使用knitr包在Rstudio中编写pdf文档.我正在使用Windows 7和Rstudio.
pandoc.exe: Error producing PDF from TeX source
Error: pandoc document conversion failed with error 43
In addition: Warning message:
running command '"C:/Program Files/RStudio/bin/pandoc/pandoc" PA1_template.utf8.md --to latex --from markdown+autolink_bare_uris+ascii_identifiers+tex_math_single_backslash-implicit_figures --output PA1_template.pdf --template "C:\R\Library\rmarkdown\rmd\latex\default.tex" --highlight-style tango --latex-engine pdflatex --variable "geometry:margin=1in"' had status 43
Execution halted
Run Code Online (Sandbox Code Playgroud)
谢谢,
路易斯