search for: gswin32c

Displaying 18 results from an estimated 18 matches for "gswin32c".

2007 Mar 31
1
Too long pathname in bitmap() crashes R on WinXP
...ap() crash R on WinXP. I've verified that this is the case with R version 2.4.1 Patched (2007-03-25 r40958) and R version 2.5.0 alpha (2007-03-30 r40957). I cannot reproduce it on Linux. REPRODUCIBLE EXAMPLE: % Rterm --vanilla # Tell R where Ghostscript is gsexe <- "C:/gs/gs8.54/bin/gswin32c.exe"; gsexe <- "C:/Program Files/gs/gs8.56/bin/gswin32c.exe"; gsexe <- shortPathName(gsexe); Sys.putenv("R_GSCMD"=gsexe); # Total length of pathname (R crashes when it is too long) n <- 130; # Output path path <- tempdir(); # Filename name <- paste(rep(&qu...
2011 Mar 27
1
grImport/ghostscript problems
...ing to get grImport up and running. I'm on a Windows 7 (home premium 64 bit) machine running R-2.12.2 along with GPL Ghostscript 9.01. I've set my Windows PATH variable to point to the Ghostscript \bin and \lib directories, and I've created the R_GSCMD environment variable pointing to gswin32c.exe. I don't have any experience with Ghostscript, but with the setup described above I can view the postscript file with the following command to the Windows command prompt: gswin32c.exe D:\Sndbx\vasarely.ps However, I can't get the PostScriptTrace() function to work on the same file. Sub...
2012 Apr 20
1
R CMD check: Sys.getenv("R_GSCMD") cannot contain full pathname (contrary to docs)
...dev2bitmap, bitmap and embedFonts. Consulted when those functions are invoked.". However, if 'R_GSCMD' contains a full pathname to the Ghostscript executable (as above "path" indicates), e.g. > Sys.getenv("R_GSCMD") [1] "C:\\Program Files\\gs\\gs8.71\\bin\\gswin32c.exe" then 'R CMD check' will report * checking sizes of PDF files under 'inst/doc' ... NOTE Unable to find GhostScript executable to run checks on size reduction Setting 'R_GSCMD' to "gswin32c.exe" and asserting that it is the PATH (this is on Windows), it...
2010 Sep 11
2
Latex fonts in R graphics
...t;cm.pdf", outfile="cmembed.pdf", fontpaths=c("cm-lgc/fonts/type1/public/cm-lgc", ".")) Error in embedFonts("cm.pdf", outfile = "cmembed.pdf", fontpaths = c("cm-lgc/fonts/type1/public/cm-lgc", : status -1 in running command 'gswin32c.exe -dNOPAUSE -dBATCH -q -dAutoRotatePages=/None -sDEVICE=pdfwrite -sOutputFile=C:\DOCUME~1\user\LOCALS~1\Temp\RtmpccEtgV\Rembed28163716 -sFONTPATH=cm-lgc/fonts/type1/public/cm-lgc;. cm.pdf' In addition: Warning message: In system(cmd) : gswin32c.exe not found Operating system: Windows XP...
2011 Jan 14
1
How to point R toward Ghostscript on a Windows XP system
...rt to my directory via the barplot command: bitmap(file="barplot.tif", type="tifflzw", height=4, width=6.5, res=1250) Unfortunately, this command produces the following error message: Error in system(paste(gsexe, "-help"), intern = TRUE, invisible = TRUE) : 'gswin32c.exe' not found >From consulting the archives and the help file, I deduced that I needed to install Ghostscript, which I did. Subsequent messages in the archives suggest directing R toward Ghostscript using an environmental variable, specifically R_GSCMD. Unfortunately, I haven't figur...
2004 Aug 23
2
R on windows problem
...I've installed several versions of R on a number of Window systems. I get the following error message (which I don't get on linux) > dev2bitmap(file="test.jpeg",type="jpeg") Error in system(paste(gsexe, "-help"), intern = TRUE, invisible = TRUE) : gswin32c.exe not found Any idea how to fix this? It seems common to all windows systems I've tried. Is there a package I can install that will correct this? Best wishes, Harry -- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Dr Andrew Harrison...
2010 Aug 19
1
error with bitmap, please help
...ning the following script, I get an error in the system df=read.table("sample.txt",sep="\t") bitmap(file="sample.JPG",type="jpeg",width=5,height=5,res=300,pointsize=10) Error in system(paste(gsexe, "-help"), intern = TRUE, invisible = TRUE) : gswin32c.exe not found plot(df$V1,df$V2,pch=20,col="blue") is there anything that I am missing?? Thanks for your input -- View this message in context: http://r.789695.n4.nabble.com/error-with-bitmap-please-help-tp2331196p2331196.html Sent from the R help mailing list archive at Nabble....
2005 Jun 03
3
plots from batchfile on windows
...sample( 10 ) plot( x, y ) Now I tried the following (but nothing worked): a) "R --vanilla < test.r" in the cmd window, => that doesn't give me a plot b) the same, but I added "bitmap(file="outplot.png")" in the scriptfile => Here I get an error that gswin32c.exe was not found. (Maybe I need to install ghostscript???) c) some attempts with Rgui.exe => I didn't arrive to pass a command argument. It would be nice, to get some hints, how this could be done. I did search the newsgroup archive, but unfortunately didn't find something. Thanks and...
2010 Mar 30
2
jpeg() saving blank files?
...ity = 100, bg = "white", restoreConsole = TRUE) I have tried different heights and widths, thinking that I had a margins problem, but no luck. I have also verified that ghostscript is installed, and that the environmental variable "R_GSCMD" is set to the correct path to gswin32c.exe. Oh, and the image device itself displays properly in the R graphics window. I can just manually save it through the menu, but I want to have more control over the dimensions. I have also tried bitmap() and png() to no avail. Any advice would be much appreciated! Thanks, Sarah
2014 Jul 14
1
Error in compactPDF/find_gs_cmd or documentation?
...inning as the documentation seems not to match the usage of the function. For GhostScript, one has to set the argument gs_cmd, which has the following description: gs_cmd - Character string giving the path to the GhostScript executable, if that is to be used. On Windows this is the path to 'gswin32c.exe' or 'gswin64c.exe'. If "", the function will try to find a platform-specific path to GhostScript. The first part seems not to work as described. If gs_cmd is given, this is passed to find_gs_cmd. This function will then call: Sys.which(gs_cmd) which rather takes the na...
2011 Aug 09
1
embedFonts() does not embed fonts?
...citation()' on how to cite R or R packages in publications. Type 'demo()' for some demos, 'help()' for on-line help, or 'help.start()' for an HTML browser interface to help. Type 'q()' to quit R. > Sys.setenv("R_GSCMD"="C:/Downloads/gs9.04/bin/gswin32c.exe") > > pdf(file = "test.pdf", family = "serif") > plot(1:10) > dev.off() null device 1 > > embedFonts(file = "test.pdf", format = "pdfwrite", outfile = "test_em.pdf",fontpaths = "C/Windows/Fonts") >...
2007 Jan 12
7
Making TIFF images with rtiff
Many medical journals and publishers require that images, whether photographs or line art, be submitted as high resolution .TIFF images. One option for R users is to produce an image in one format and to convert it to a .TIFF file using a second software program. My experience has been that this option often results in images of poorer quality, often with blurry contours, and a loss of
2007 Apr 25
5
Upload PDF / Save as tiff
...#39;m trying to automate the conversion of a PDF document received via a browser upload to a tiff image via ghostscript. I have the PDF data in a string, and I need the tiff data returned into a string. The general command I want to emulate is: type test.pdf | "c:\program files\gs\gs8.56\bin\gswin32c.exe" -q -dNOPAUSE -dBATCH -sDEVICE=tiffg4 -sOutputFile=- > test5.tiff I''ve had success in writing directly to a file via: IO.popen(''c:\program files\gs\gs8.56\bin\gswin32c.exe -q -dNOPAUSE -dBATCH -sDEVICE=tiffg4 -sOutputFile=test3.tiff -'', "wb") do |pi...
2009 Dec 22
0
Embed Fonts in All EPS files inside a Directory
...issue (which is probably an GhostScript, not R, issue. But interestingly, when GIMP is using GhostScript to render eps files, there aren’t problems with the files or directories names!?!). GIMP 2.6.7 uses the GS_PROG environmental variable, which leads to the same exe file of the R_GSCMD variable (gswin32c.exe) Thank you for your attention, I hope you may help me. Below are my session details: I execute R as admin on a Windows Vista Home Premium SP2 I’ve set up the R_GSCMD environment variable accordingly R version 2.10.1 (2009-12-14) i386-pc-mingw32 locale: [1] LC_COLLATE=Portu...
2010 Jun 30
1
Why the variation when creating .pdf file output for my plots?
....pdf file output for my plots? FYI- my goal is produce the highest quality .pdf output from the R 'command line' as opposed to using the menu of the acitve graphics window. Im using 32bit WinXP. Session info at the bottom. I have Ghostscript v8.71 installed and in the Path such that C:\gswin32c.exe runs said program. All shared insights appreciated! Karl Method 1: In the R graphics device window, form the menu File>Save As>PDF -yields a .pdf file of 700Kb (in this plot example) Method 2: > dev2bitmap(file="expression.density.plotb.pdf", type = "pdfwrite&quot...
2010 Aug 18
0
error with bitmap
...running the following script, I get an error in the system df=read.table("sample.txt",sep="\t") bitmap(file="sample.JPG",type="jpeg",width=5,height=5,res=300,pointsize=10) Error in system(paste(gsexe, "-help"), intern = TRUE, invisible = TRUE) : gswin32c.exe not found plot(df$V1,df$V2,pch=20,col="blue") is there anything that I am missing?? Thanks for your input -- View this message in context: http://r.789695.n4.nabble.com/error-with-bitmap-tp2330168p2330168.html Sent from the R help mailing list archive at Nabble.com.
1999 Oct 04
1
bitmap copies of plots
...fixed in postscript() (but not a couple of days before a release). I want to make onefile=FALSE work on postscript() (it needs to start a file for each page, and give it a EPSF-3.0 header), and to allow user-specified paper sizes and the option of not centring on the page. Oh, and I do know it is gswin32c on Windows: that is easy to incorporate but I have not tested it. One could attempt to retrieve height and width from the current device, but I don't see that information is presently available from R code. Any comments? dev2bitmap <- function(file, type="png256", height=6, wid...
2003 Mar 06
6
Followup: copy-paste graphics from R to Word on Mac OS X
After trying numerous options, I'm just about at my wits end. The most frequent suggestion was to export to a postscript or PDF file and import that into Word. However, no matter what I did or how I did it, the results were extraordinarily ugly and somewhat time-consuming. What I've tried so far: 1. Copy and paste from the R graphics output window into Word (in Mac OS X), this is