knitr2pdf eclipse:如何配置? [英] knitr2pdf eclipse : how to configure?

查看:52
本文介绍了knitr2pdf eclipse:如何配置?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试按照本教程设置eclipse以构建我的文档 https://yihui .name/knitr/demo/eclipse/,所以我已经相应地设置了eclipse

I'm trying to set up eclipse to build my document following this tutorial https://yihui.name/knitr/demo/eclipse/, so I have set up eclipse accordingly

尝试运行程序时,出现以下错误

When trying to run the program I get into the following error

knit2pdf(文件="C:/workspace/p/example_scripts/test_knit2pdf.Rmd") readLines(if(is.character(input2)){中的错误:对象'input2' 找不到

knit2pdf(file= "C:/workspace/p/example_scripts/test_knit2pdf.Rmd") Error in readLines(if (is.character(input2)) { : object 'input2' not found

当尝试查找有关该错误的信息时,我发现了该帖子,它仅说明markdown中可能有修复程序. https://github.com/andrewheiss/SublimeKnitr/issues/7 有人可以给我提示如何解决这个问题吗?

When trying to find something about that error, I found this post which only explains that there might be a fix in markdown. https://github.com/andrewheiss/SublimeKnitr/issues/7 Could someone give me a hint on how to solve that problem ?

推荐答案

您未遵循文档 https://yihui.name/knitr/demo/eclipse/.函数knitr::knit2pdf()没有名为file的参数.要么使用input=要么就忽略参数名称(即使用位置参数).

You were not following the documentation https://yihui.name/knitr/demo/eclipse/. The function knitr::knit2pdf() does not have an argument named file. Either use input= or just leave out the argument name (i.e. use positional arguments).

这篇关于knitr2pdf eclipse:如何配置?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆