Re: [R-SIG-Mac] R code chunks

2016-04-12 Thread Mark Sharp
Ivan, Perhaps you are not aware of the ability to open scripts in a new window within the RStudio IDE. Look up the RStudio IDE tutorial on the subject at (https://support.rstudio.com/hc/en-us/articles/207126217-Using-Source-Windows). However, there is no way to have multiple copies of the same

Re: [R-SIG-Mac] R code chunks

2016-04-12 Thread Tom Hopper
Ivan, Some of the functionality of R Markdown documents can be found in the R GUI when you work in a script document rather than the console and make use of functions. For instance, the ability to expand or collapse parts of the document (functions can be expanded or collapsed), have code run w

Re: [R-SIG-Mac] R code chunks

2016-04-12 Thread Ivan Calandra
Thanks a lot John. I had tried, but only with the whole Editor window, not trying to extract single tabs from the Editor window...! Ok, I think I'll switch to RStudio then, but still, the Mac R Editor is great ;) Ivan -- Ivan Calandra, PhD University of Reims Champagne-Ardenne GEGENAA - EA

Re: [R-SIG-Mac] R code chunks

2016-04-12 Thread Ivan Calandra
Sorry, I thought it would be clear based on the previous emails... I don't know much yet about chunks and other functionalities of knitr and rmarkdown, so I might be missing some points, but three interesting aspects about chunks that I have already notices is that it is possible to give them

Re: [R-SIG-Mac] R code chunks

2016-04-12 Thread Mollie Brooks
Hi Ivan, Can you be more explicit about what it means to you to "enable chunks" or "properly use chunks"? Then developers will understand what you’re looking for. cheers, Mollie Mollie Brooks, PhD Postdoctoral Researcher, Population Ecology Research Group Department of

Re: [R-SIG-Mac] R code chunks

2016-04-12 Thread Ivan Calandra
Thank you Mollie and all, So it looks like there's no way to properly use chunks within the Mac R GUI. I will have to decide whether I completely switch to RStudio, or develop in the R GUI and then run in RStudio. Still, until now I was a great fan of the R GUI on Mac so I'm a bit frustrated

Re: [R-SIG-Mac] R code chunks

2016-04-12 Thread John Magnotti
The failure to find pdflatex may have to do with how R GUI tries to discover the system path (or pdflatex is actually not on your system). A while back, Ian Gow suggested adding the location of the pdflatex binary to the path to fix this issue. The top of that thread is here: https://stat.ethz.ch/

Re: [R-SIG-Mac] R code chunks

2016-04-12 Thread Mollie Brooks
Hi Ivan, Using the R GUI and the built-in editor, you should be able to format your document in the standard Rmarkdown or knitr way and save it with the appropriate extension (Rmd or Rnw), but only run lines within chunks in the console (using command + enter in the normal way). You can make su

Re: [R-SIG-Mac] R code chunks

2016-04-12 Thread Ivan Calandra
Thank you for your answer. I don't usually use the Terminal, so I'm not sure how to do it. But do you mean to start it from the Terminal and then use the R GUI or do everything in the Terminal? In the latter case, I would prefer using RStudio... My question was about using the R GUI Editor rath

[R-SIG-Mac] R code chunks

2016-04-12 Thread Ivan Calandra
Dear Mac useRs, A colleague of mine have introduced me to rmarkdown and knitr to produce nice reports. The other interesting thing here is to have so-called chunks of code, which I find very practical to organize scripts. I have found that it works well within RStudio. But is there a way to