I can use the knit button to compile an Rmarkdown file to html in Rstudio.
How can I do the same in an R console?
In an R console, you can use the following command:
rmarkdown::render("input.Rmd")
The command posted by scoa
rmarkdown::render("input.Rmd")
is ok, but outside RStudio you can receive error because pandoc version can be too old.
If so see https://github.com/rstudio/rmarkdown/blob/master/PANDOC.md
If you are on Linux you need just to link pandoc version from RStudio or RStudio Server.
Related
I'm using quarto in RStudio (windows) to compile a markdown document to pdf with xelatex. Until now I was using the quarto 1.1... version, all was working fine. Today I have updated to version 1.2.269 and now I can't compile my document, the xelatex call hangs in a 'tlmgr updating' call. It generates .tex output but the xelatex call just hangs there and never ends. However my TexLive installation is fully updated, as I have checked manually with tlmgr. Launching xelatex from TexWorks works ok and xelatex can compile this .tex file and generate the correct pdf file. Any advice about what can be wrong with quarto or xelatex call from RStudio after this quarto update? Thanks in advance
Trying to start using Quarto together with Rstudio.
Followed the instructions here: https://quarto.org/docs/get-started/hello/rstudio.html
When I run the following commands I obtain:
> quarto_version()
[1] ‘1.0.38’
> quarto_path()
[1] "C:\\Users\\jld\\AppData\\Local\\Programs\\Quarto\\bin\\quarto.cmd"
There are no Quarto options in the Global options.
I can't choose Quarto from File or choose it as document type, see images below.
Any ideas on what is wrong?
What I am understanding from your comment is that you are using an older version of Rstudio. From the Quarto Website it is said that to use quarto, we are required to use the RStudio (v2022.07).
So update your Rstudio version.
I changed Rstudio's R version to a non-default one from Tools-options. Now when I reopen Rstudio, it fails to start. Just a blank window with Rstudio title. Uninstall and reinstall didn't help.
Is there a way to change Rstudio's R version from outside Rstudio, say a config file?
OK, found the config in the file
AppData\Roaming\RStudio\desktop.ini
Does anyone one know what to add in the Sass path in a mac? All the tutorials I have found are for Windows: https://medium.com/#raaechelb/sass-installing-on-netbeans-and-getting-started-2b5ce99d985c
I have installed Ruby and Sass. I can get SCSS to compile if I use --watch in the command line, but I can't seem to get Netbeans to see SASS within the IDE. I have also tried the file path /usr/bin/sass suggested on the Netbeans website:https://netbeans.org/kb/docs/webclient/html5-editing-css.html
I keep getting 'SASS executable must be a valid file' - Any ideas?
enter image description here
Go to your terminal and type which sass. It should give you the path that you can copy and paste in NetBeans.
I have installed vim in windows and would like to configure it so i can send code to R. I want to also use Sweave with it. However, i have Googled and failed to find clear step-by-step instructions on how to set this up.
my attempts so far:
installed Vim using executable from ftp://ftp.vim.org/pub/vim/pc/gvim73_46.exe
downloaded R-plugin from https://github.com/jcfaria/Vim-R-plugin/zipball/master and extracted it to a folder on my pc. following instructions in the r-plugin.txt file, i installed python-3.2.msi and pywin32-216.1.win32-py3.2exe. I extracted the plugin zip-file to C:\Program Files (x86)\Vim\vimfiles\ merging like-named folders together. then i opened Vim and typed :helptags C:\Program Files (x86)\Vim\vimfiles\doc. I closed Vim then I started R and reopened Vim. I typed :new anewfile.R and got the error message
"Python interface must be enabled to run Vim-R-Plugin. Please do ':h r-plugin-installation details
and when i type this i get
error149, no help for r-plugin-installation
I also did not see the buttons that send code to R.
I failed to understand the instruction that , "You may have to
adjust the value of |vimrplugin_sleeptime|."
What should i do?
-I already have Miktex 2.9 on my PC. will Vim see it? How do I set up Vim to see Latex?
Will appreciate any help.
Note: I have used rstudio with Sweave and also eclipse but there are some issues i need to resolve and hence need to try vim and see how it will work out.
I suppose that this solution will not satisfying you completely but Rstudio IDE features a basic VIm editing mode: Global Option > Code Editing > Enable vim editing mode.
I think the windows binaries of Vim 7.3 need Python 2.7 or 3.1. You can check the information that you get via :version; the linked Python version is somewhere in it.
So my solution would be installing Python 2.7 (+pywin32 for python 2.7). Also, check if Python is working in Vim before trying to use the R plugin.