SublimeKnitr | adds knitr Markdown and LaTeX support | Code Editor library
kandi X-RAY | SublimeKnitr Summary
kandi X-RAY | SublimeKnitr Summary
Plugin that adds knitr Markdown and LaTeX support in Sublime Text 2 and 3
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of SublimeKnitr
SublimeKnitr Key Features
SublimeKnitr Examples and Code Snippets
Community Discussions
Trending Discussions on SublimeKnitr
QUESTION
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(file= "C:/workspace/p/example_scripts/test_knit2pdf.Rmd") Error in readLines(if (is.character(input2)) { : object 'input2' not found
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 ?
...ANSWER
Answered 2017-Oct-27 at 13:57You 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).
QUESTION
I am using cronr add in with RStudio (on Mac OSX 10.11.6 El Capitain) to schedule my script fetch_n_write.R.
If I select 'Once' from the Schedule
options in the pop up, the script is run immediately and the file it generates is outputted. Success!
If I try to schedule the job to run daily in 2 minutes, the log shows it running the code but then ends with '/bin/sh: Rscript: command not found' and the file does not get written. No Success.
I am guessing after some searching that this has to do something with permissions. It was suggestedthat R might need to be reinstalled, but which R
results in
/usr/local/bin/R
and which Rscript
results in
/usr/local/bin/Rscript
which I think means I should not have to reinstall R?
ANSWER
Answered 2017-Jan-24 at 05:28The problem is in the cron
command, and the job fails because the absolute path is not used for the actual command portion (returning the error '/bin/sh: Rscript: command not found'
):
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install SublimeKnitr
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page