[R] r2wd (Write R to Word) in Chinese
Hi, The package r2wd is good at writing MS Word document from R. Can Chinese be written into MS Word by this package or any other method from R? Are Chinese fonts (e.g., Kai 楷書) available in r2wd? Thanks! [[alternative HTML version deleted]] __ R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.
[R] R2wd package wdGet() error
I am having trouble using the R2wd package. The last time I used it successfully, I was running an earlier version of R and an earlier version of Word with an earlier Windows OS. I'm not sure which if any of these changes might be contributing to the problem. Right now I'm using R version 2.15.0 (2012-03-30) for Windows MS Word 2010 version 14.0.6112.5000 (32-bit) Windows 7 Enterprise 2009 (Service Pack 1) When I submit the following code library(R2wd) library(rcom) wdGet() I get this error message Error in if (wdapp[[Documents]][[Count]] == 0) wdapp[[Documents]]$Add() : argument is of length zero I saw in a previous posting to r-help ( http://r.789695.n4.nabble.com/R2wd-error-in-wdGet-td4632737.html), someone asked if RDCOMClient was installed and working properly. So, I tried submitting this code install.packages(RDCOMClient, repos = http://www.omegahat.org/R;) And I got this warning message: package ?RDCOMClient? is not available (for R version 2.15.0) I also ran installstatconnDCOM() And it seemed to install fine. But when I try to run statconn DCOM's Server 01 ? Basic Test, and then select Start R, I get this message Loading StatConnector Server... Done Initializing R...Function call failed Code: -2147221485 Text: installation problem: unable to load connector Method '~' of object '~' failed Releasing StatConnector Server...Done Any suggestions for how I might get wdGet() to work? Thanks in advance. Jean [[alternative HTML version deleted]] __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.
Re: [R] R2wd package wdGet() error
On 7/23/2012 4:25 PM, Jean V Adams wrote: I am having trouble using the R2wd package. The last time I used it successfully, I was running an earlier version of R and an earlier version of Word with an earlier Windows OS. I'm not sure which if any of these changes might be contributing to the problem. Right now I'm using R version 2.15.0 (2012-03-30) for Windows MS Word 2010 version 14.0.6112.5000 (32-bit) Windows 7 Enterprise 2009 (Service Pack 1) When I submit the following code library(R2wd) library(rcom) wdGet() I get this error message Error in if (wdapp[[Documents]][[Count]] == 0) wdapp[[Documents]]$Add() : argument is of length zero I have a new R on a new Win7 OS since I last wdget() so i decided to try to reproduce your error I tried your code and got the same error (R2.15.1), but the library(rcom) However, as you note below, that line also told me to install RDCOMClient with the command; installstatconnDCOM() I did this and the install happened seamlessly with only a few user interactions. wdget() now works just fine. The only missing instruction here is that it is necessary to stop and restart R after installing the RDCOMClient. If you did not try that give it a try. It worked well for me. Rob I saw in a previous posting to r-help ( http://r.789695.n4.nabble.com/R2wd-error-in-wdGet-td4632737.html), someone asked if RDCOMClient was installed and working properly. So, I tried submitting this code install.packages(RDCOMClient, repos = http://www.omegahat.org/R;) And I got this warning message: package ?RDCOMClient? is not available (for R version 2.15.0) I also ran installstatconnDCOM() And it seemed to install fine. But when I try to run statconn DCOM's Server 01 ? Basic Test, and then select Start R, I get this message Loading StatConnector Server... Done Initializing R...Function call failed Code: -2147221485 Text: installation problem: unable to load connector Method '~' of object '~' failed Releasing StatConnector Server...Done Any suggestions for how I might get wdGet() to work? Thanks in advance. Jean [[alternative HTML version deleted]] __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code. __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.
Re: [R] R2wd error in wdGet
I had this problem when my word was already open and asking for saving a file. So the VBA was already busy. Bart -- View this message in context: http://r.789695.n4.nabble.com/R2wd-error-in-wdGet-tp4632737p4633080.html Sent from the R help mailing list archive at Nabble.com. __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.
Re: [R] R2wd error in wdGet
I've tried again and it worked fine this time. I can't figure out why it didn't last time. Thanks for helping anyway! On Mon, Jun 11, 2012 at 4:58 AM, Robert Baer rb...@atsu.edu wrote: wdGet() Error in if (wdapp[[Documents]][[Count**]] == 0) wdapp[[Documents]]$Add() : argument is of length zero Not sure what your error means without more context, you should see: Loading required package: rcom Loading required package: rscproxy Do you have RDCOMClient installed and working properly? rcom requires a current version of statconnDCOM installed. To install statconnDCOM type installstatconnDCOM() This will download and install the current version of statconnDCOM You will need a working Internet connection because installation needs to download a file. HTH, Rob Error in if (wdapp[[Documents]][[Count**]] == 0) wdapp[[Documents]]$Add() : argument is of length zero -Original Message- From: Andreia Leite Sent: Thursday, June 07, 2012 2:53 PM To: r-help@r-project.org Subject: [R] R2wd error in wdGet that Dear list, I'm trying to use R2wd package. I've installed the package and try wdGet(). However a error message came up. I'm presently using R 2.15.0 wdGet() Error in if (wdapp[[Documents]][[Count**]] == 0) wdapp[[Documents]]$Add() : argument is of length zero Does anyone knows what this means? Thanks a lot. Andreia Leite -- View this message in context: http://r.789695.n4.nabble.com/** R2wd-error-in-wdGet-tp4632737.**htmlhttp://r.789695.n4.nabble.com/R2wd-error-in-wdGet-tp4632737.html Sent from the R help mailing list archive at Nabble.com. __** R-help@r-project.org mailing list https://stat.ethz.ch/mailman/**listinfo/r-helphttps://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/** posting-guide.html http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code. -- Andreia Leite [[alternative HTML version deleted]] __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.
Re: [R] R2wd error in wdGet
wdGet() Error in if (wdapp[[Documents]][[Count]] == 0) wdapp[[Documents]]$Add() : argument is of length zero Not sure what your error means without more context, you should see: Loading required package: rcom Loading required package: rscproxy Do you have RDCOMClient installed and working properly? rcom requires a current version of statconnDCOM installed. To install statconnDCOM type installstatconnDCOM() This will download and install the current version of statconnDCOM You will need a working Internet connection because installation needs to download a file. HTH, Rob Error in if (wdapp[[Documents]][[Count]] == 0) wdapp[[Documents]]$Add() : argument is of length zero -Original Message- From: Andreia Leite Sent: Thursday, June 07, 2012 2:53 PM To: r-help@r-project.org Subject: [R] R2wd error in wdGet that Dear list, I'm trying to use R2wd package. I've installed the package and try wdGet(). However a error message came up. I'm presently using R 2.15.0 wdGet() Error in if (wdapp[[Documents]][[Count]] == 0) wdapp[[Documents]]$Add() : argument is of length zero Does anyone knows what this means? Thanks a lot. Andreia Leite -- View this message in context: http://r.789695.n4.nabble.com/R2wd-error-in-wdGet-tp4632737.html Sent from the R help mailing list archive at Nabble.com. __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code. __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.
[R] R2wd error in wdGet
Dear list, I'm trying to use R2wd package. I've installed the package and try wdGet(). However a error message came up. I'm presently using R 2.15.0 wdGet() Error in if (wdapp[[Documents]][[Count]] == 0) wdapp[[Documents]]$Add() : argument is of length zero Does anyone knows what this means? Thanks a lot. Andreia Leite -- View this message in context: http://r.789695.n4.nabble.com/R2wd-error-in-wdGet-tp4632737.html Sent from the R help mailing list archive at Nabble.com. __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.
[R] R2wd: Insert MS Word field
Hello Everyone, the basic idea is to generate an initial (MS Word) report by R (plots, tables and outline structure), pass this document around so everyone can add / change content (except plots and tables) and later to be able to update the R plot / table logic and update the already modified word file. I was toying around with the R2wd [1] package to test whether it is a viable way of writing the initial report from within R. Again, the idea is to generate a template from R with R2wd, and distribute that document to our co-students. They can then edit this file, i.e. add text, captions etc., but the tables and plots should be reproducible from within Word with the SWord [2] package. Now R2wd and SWord have some nice features and already work, but for the task described above a little bit is missing: SWord expects (noweb-like) code snippets to be in a Word `field'. So as the subject states, I need a way of inserting this word field from R2wd - something along the lines of: wdField(results = hide, fig = TRUE= plot(1:100)) sadly, I did not find that in the documentation. Any ideas or hints? Best Regards, Michael Bach [1] http://cran.r-project.org/web/packages/R2wd/index.html [2] http://cran.r-project.org/web/packages/SWordInstaller/index.html __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.
[R] R2wd
Hi all, I'm currently trying to get accustomed to R and some of its packages, thus need some help for a package called R2wd. As I am trying to use the wdGET() function I'm getting the following message: Error in if (!(tmp[[ActiveDocument]][[Name]] == filename)) tmp$Open(paste(path, : argument is of length zero Does anybody know what that means? Best, -- View this message in context: http://r.789695.n4.nabble.com/R2wd-tp3313527p3313527.html Sent from the R help mailing list archive at Nabble.com. __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.
[R] R2wd and ESS: printing source?
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 I'm using R2wd and ESS. ESS-mode doesn't let one fill wdBody() calls, and printing out of Emacs (M-x print-buffer or M-x print-region) doesn't wrap, so I miss most of the text on printed listings. What do others do to address that? Thanks, Bill - -- Bill Harris http://makingsense.facilitatedsystems.com/ Facilitated Systems Everett, WA 98208 USA http://www.facilitatedsystems.com/ phone: +1 425 374-1845 -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.10 (GNU/Linux) iEYEARECAAYFAkw+iasACgkQ3J3HaQTDvd9IHwCfdfowaeo52pgFpbpCS4QGH8uk EmAAnAt7Jc/rGkbRrvtoyvww/2scGadJ =8V1I -END PGP SIGNATURE- __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.
[R] R2wd- how to open an existing document
Hi: How can one open an existing word document with wdGet() I am getting an error message when trying to open it like this: wdGet(filename=myDoc.doc,path=c/mydata) Looking at Tal Galili's website example it appears that double backslashes are used but i tried it and didn't work either. Thanks Felipe D. Carrillo Supervisory Fishery Biologist Department of the Interior US Fish Wildlife Service California, USA __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.
Re: [R] R2wd- how to open an existing document
Having no clue about the specifics here, but what about: wdGet(filename = myDoc.doc, path = c:/mydata) You are leaving out what didn't work means. What error are you receiving? Felipe Carrillo wrote: Hi: How can one open an existing word document with wdGet() I am getting an error message when trying to open it like this: wdGet(filename=myDoc.doc,path=c/mydata) Looking at Tal Galili's website example it appears that double backslashes are used but i tried it and didn't work either. Thanks Felipe D. Carrillo Supervisory Fishery Biologist Department of the Interior US Fish Wildlife Service California, USA __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code. __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.
Re: [R] R2wd- how to open an existing document
Hi: I am doing exactly that but I still get the following error message: Error in if (!(tmp[[ActiveDocument]][[Name]] == filename)) tmp$Open(paste(path, : argument is of length zero Felipe D. Carrillo Supervisory Fishery Biologist Department of the Interior US Fish Wildlife Service California, USA - Original Message From: Erik Iverson er...@ccbr.umn.edu To: Felipe Carrillo mazatlanmex...@yahoo.com Cc: r-h...@stat.math.ethz.ch Sent: Tue, July 6, 2010 3:03:31 PM Subject: Re: [R] R2wd- how to open an existing document Having no clue about the specifics here, but what about: wdGet(filename = myDoc.doc, path = c:/mydata) You are leaving out what didn't work means. What error are you receiving? Felipe Carrillo wrote: Hi: How can one open an existing word document with wdGet() I am getting an error message when trying to open it like this: wdGet(filename=myDoc.doc,path=c/mydata) Looking at Tal Galili's website example it appears that double backslashes are used but i tried it and didn't work either. Thanks Felipe D. Carrillo Supervisory Fishery Biologist Department of the Interior US Fish Wildlife Service California, USA __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code. __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.