trouble paste from Rstudio to word On mac
Hello.
I am running Rstudio with a mac and Office 2011, in french.
It seems that copying directly output from Rstudio (such as plot or
even text from consol) to Word induces a crash in Word.
To deal with it , I actually copy consol output to another support
(text editor) and create PDF for plot before integrating my results
in Word. Proceding this way I can work without any trouble.
Does anyone encounter such problem ?
What could be the conflict ?
Thank you for any help
Regards
Guillaume
Comments are currently closed for this discussion. You can start a new one.
Support Staff 2 Posted by Josh Paulson on 16 Apr, 2012 07:34 PM
Guillaume,
I have not heard of this or seen it before. I also just tried to reproduce this on my Mac (but in English) to no avail. Not sure why this would be occurring and you mentioned both copying plots as well as text from the console? Can you give me an example plot (perhaps it is more involved than what I tried:
plot(cars)). Also are you using the "Copy plot to clipboard" feature or another method to copy and past it into MS Word.Josh
3 Posted by guillaume on 18 Apr, 2012 06:00 PM
Yes I used the copy plot to clipbard feature, but sith th issue I told you.
It is probably a trouble in my own installation, I just wanted to share in case. thank you for the reply. If I am the onbly one to experiment this issue, please close the ticket. Sorry for the convenience and many congratulation again.
Guillaume
4 Posted by jenn on 19 Apr, 2012 06:25 PM
I never had any trouble before copying and pasting graphs from RStudio into Word on my Mac (except that they are lower quality images as compared to on a PC). however, with the latest version I installed (0.95.263), I can't seem to copy anything to the clipboard, either on my old MacBook, or my newer iMac. (nothing is in the clipboard).
So this isn't directly related (Word doesn't crash), but nothing happens on the paste. I can try reinstalling everything, but wondered if there were a more obvious solution.
thanks!
Jenn
Support Staff 5 Posted by Josh Paulson on 24 May, 2012 04:24 PM
Guillaume and Jenn,
Sorry for missing this post earlier. Are you both still having troubles? We recently released our new version of RStudio (v0.96.225) Can you download this and see if it fixes your problem:
http://www.rstudio.org/download/desktop
Josh
Josh Paulson closed this discussion on 25 May, 2012 10:10 PM.
Jennifer Williams re-opened this discussion on 15 Jun, 2012 09:31 AM
6 Posted by Jennifer Williams on 15 Jun, 2012 09:31 AM
Hi Josh,
not sure if this email will go through, but the discussion was closed on
the website.
I just downloaded the new versions of R and RStudio this week, and I'm
still having the same problem. (but not when I use R itself on my iMac)
thanks!
Jennifer
7 Posted by Guillaume Avenin on 15 Jun, 2012 11:12 AM
hello
I am still experiencing some issues, but i think it is due to a conflict between encoding.
mac os X is in ASCII for french and I cannot in R studio change this setting ( I can make the change outside)
great app
many thanks for your important work
Guillaume
Support Staff 8 Posted by Josh Paulson on 18 Jun, 2012 03:52 AM
Guillaume and Jenn,
Sorry for the long delay as we were at the annual useR conference all week and had limited access to email. Jenn are you also using a language setting different than English? I am actually still having trouble reproducing either of these problems (the crash in MS Word or not being able to copy/paste). Would you be able to post direct instructions (example below), as well as post the output of the following command:
Example Repro (attempt):
1) Goto "System Preferences | Language and Text | Input Sources" and select French Keyboard Layout
2) In the console, enter "plot(cars)" to produce a plot
3) In the Plots Pane, go to "Export | Copy Plot to Clipboard"
4) Go to MS Word
5) Right-Click and paste
Josh
9 Posted by Jennifer Williams on 04 Jul, 2012 01:08 PM
Hi Josh,
I apologize from my end for the delay. I am using the English version.
Attached, please find the file I made in Word using your instructions.
You can see that the image quality isn't great.
For contrast, I added (on page 2), the same graph produced in R.
The only difference I can see is that Rstudio is using the 64 bit
version and base R is using the 32 bit version.
thanks for working on this!
Jenn
Support Staff 10 Posted by Josh Paulson on 08 Jul, 2012 01:36 AM
Jenn,
So are you then able to copy and paste into RStudio? You originally posted that you were not able to get the image to copy to the clipboard. This seems solved then correct?
Josh
11 Posted by Jennifer Williams on 08 Jul, 2012 05:15 AM
Hi Josh,
This is probably too far removed from the original thread. I've always
been able to copy & paste from RStudio into another document (word,
power point, etc.), but the image quality is terrible, unlike when I
copy & paste straight from R (as shown in the document I sent). This is
only true on my Mac (but not on my old PC). It's fine, I can save the
images as pdfs or tiffs in Rstudio and then insert them into the file,
but often it means that I work in RStudio up to the point I need graphs,
and then switch back to R. Just takes longer when I'm trying to produce
a file that's a compilation of graphs as a summary of a project
(obviously manuscripts need higher quality images).
best,
jennifer
Support Staff 12 Posted by Josh Paulson on 09 Jul, 2012 03:50 AM
Jennifer,
Ahh okay. Must have gotten this mixed up at some point. I see what you are saying about the different quality levels and this is because of the two different graphics devices. The RStudio graphics devices renders png's while the default device for R on the Mac is the quartz device.
http://stat.ethz.ch/R-manual/R-patched/library/grDevices/html/quart...
If you want higher quality pictures, you can manually set the resolution when calling
png():http://stat.ethz.ch/R-manual/R-patched/library/grDevices/html/png.html
Otherwise as default in RStudio, you could also try exporting them as a different file type such as Postscript rather than copying to clipboard. I can create a feature request though to allow changing the resolution, etc. with the export option in RStudio.
Josh
Josh Paulson closed this discussion on 09 Jul, 2012 03:50 AM.