[R] Reading from Google Docs

William Dunlap wdunlap at tibco.com
Wed Jul 8 18:23:08 CEST 2009


> -----Original Message-----
> From: r-help-bounces at r-project.org 
> [mailto:r-help-bounces at r-project.org] On Behalf Of Gabor Grothendieck
> Sent: Wednesday, July 08, 2009 9:04 AM
> To: Duncan Murdoch
> Cc: R; Uwe Ligges; Farrel Buchinsky
> Subject: Re: [R] Reading from Google Docs
> 
> Its safer just to temporarily add it to your path.

I recommend that also.  Here is the SETPATH.BAT file
that I put into my Rtools directory that sets up PATH so
it can be used for building R and R packages.  I run it
from within the cmd window I will use for building
packages.  Note that it totally replaces the current value
of PATH with a new one; it does not append or prepend
entries to the existing one.  You will have to adjust the
entries for you own machine.  It is safe to add other entries
(like e:\cygwin\bin) to the end of this PATH, but you
might run into trouble putting entries at the front of PATH.

(I have a similar script to run before building packages
for S+, whose package building system uses the Microsoft
compilers and ActiveState perl but no cygwin tools.)

E:\>type e:\Rtools\SETPATH.BAT
set RTOOLS=E:\Rtools
REM RHOME is for use in this script, R_HOME will be set by R itself.
set RHOME=E:\R-svn\r-devel

set PATH=C:\WINDOWS\system32;C:\WINDOWS

set PATH=%RTOOLS%\bin;%RTOOLS%\perl\bin;%RTOOLS%\MinGW\bin;%PATH%
set PATH=%RHOME%\bin;%PATH%

set PATH=%PATH%;E:\Program Files\MiKTeX 2.7\miktex\bin
set PATH=%PATH%;E:\Program Files\Inno Setup 5
set PATH=%PATH%;C:\Program Files\HTML Help Workshop
set PATH=%PATH%;E:\Program Files\CollabNet Subversion Server

Bill Dunlap
TIBCO Software Inc - Spotfire Division
wdunlap tibco.com  

> 
> Unfortunately Rtools has a find command that conflicts with
> the find command in Windows so if you add the Rtools
> bin directory to your path permanently then you could
> find other programs stop working.  That actually happened
> to me once and it took the longest time until I discovered
> that Rtools was the culprit.
> 
> If you follow the advice I gave you normally won't have
> that problem.
> 
> On Wed, Jul 8, 2009 at 11:21 AM, Duncan 
> Murdoch<murdoch at stats.uwo.ca> wrote:
> > On 08/07/2009 10:13 AM, Farrel Buchinsky wrote:
> >>
> >> Forgive my naivte, but how do I make windows find tar. In 
> other words from
> >> where do I issue the command and what is the command.
> >
> > You need to install the toolset, and let the installer set 
> your path.
> >
> > Duncan Murdoch
> >
> >> Farrel Buchinsky
> >> Google Voice Tel: (412) 567-7870
> >>
> >>
> >>
> >> On Wed, Jul 8, 2009 at 10:09, Duncan Murdoch 
> <murdoch at stats.uwo.ca> wrote:
> >>
> >>> On 08/07/2009 10:02 AM, Farrel Buchinsky wrote:
> >>>
> >>>> I  have previously read "R Installation and 
> Administration". I read it
> >>>> again. It does not help me
> >>>> The relevant paragraph is below. But I need lower level 
> instructions.
> >>>> Where
> >>>> can I find them.
> >>>>
> >>> Follow the link.  If Windows can't find tar, your toolset 
> is installed
> >>> incorrectly.
> >>>
> >>> Duncan Murdoch
> >>>
> >>>
> >>>> R CMD INSTALL works in Windows to install source 
> packages if you have
> >>>> the
> >>>> source-code package files (option "Source Package 
> Installation Files" in
> >>>> the
> >>>> installer) and toolset (see The Windows
> >>>>
> >>>>
> >>>> 
> toolset<file:///C:/Program%20Files/R/R-2.9.1/doc/manual/R-admi
> n.html#The-Windows-toolset>)
> >>>>
> >>>> installed. Installation of binary packages must be done by
> >>>> install.packages
> >>>> . R CMD INSTALL --help will tell you the current options 
> under Windows
> >>>> (which differ from those on a Unix-alike): in particular 
> there is a
> >>>> choice
> >>>> of the types of documentation to be installed.
> >>>> Farrel Buchinsky
> >>>> Google Voice Tel: (412) 567-7870
> >>>>
> >>>>
> >>>>
> >>>> 2009/6/19 Uwe Ligges <ligges at statistik.tu-dortmund.de>
> >>>>
> >>>>  See the manual "R Installation and Administration" for 
> information on
> >>>> how
> >>>>>
> >>>>> to install source packages on Windows.
> >>>>>
> >>>>> Uwe Ligges
> >>>>>
> >>>>> Farrel Buchinsky wrote:
> >>>>>
> >>>>>  After issuing tar xvfz RgoogleDocs_0.2.2-src.tar.gzI 
> am getting an
> >>>>> error
> >>>>>>
> >>>>>> message
> >>>>>> 'tar' is not recongnized as an internal or external 
> command, operable
> >>>>>> program or batch file.
> >>>>>>
> >>>>>> Should I use my 7-zip to open up the archive?
> >>>>>> Where should I be doing this? For instance can I do it 
> all in my
> >>>>>> download directory or should I do it in C:\Program
> >>>>>> Files\R\R-2.9.0\library or should I manually create C:\Program
> >>>>>> Files\R\R-2.9.0\library\RGoogleDocs and do it all 
> there or will the
> >>>>>> Rcmd
> >>>>>> INSTALL RGoogleDocs_0.2-2.tar.gz command do that for me.
> >>>>>>
> >>>>>> Yes, you assumed correctly. I am using Windows XP.
> >>>>>> Farrel Buchinsky
> >>>>>> Google Voice Tel: (412) 567-7870
> >>>>>>
> >>>>>>
> >>>>>>
> >>>>>> On Thu, Jun 18, 2009 at 20:17, Gabor Grothendieck
> >>>>>> <ggrothendieck at gmail.com>wrote:
> >>>>>>
> >>>>>>  I have haven't neen following this thread but:
> >>>>>>
> >>>>>>> 1. if RGoogleDocs_0.2-2.tar.gz is a source distribution (as
> >>>>>>> opposed to built source) then the first line renames it so
> >>>>>>> that its not the same name as the built file about to 
> be created.
> >>>>>>> The second line detars it into the RGoogleDocs 
> directory.  The third
> >>>>>>> builds
> >>>>>>> the built source file, RGoogleDocs_0.2-2.tar.gz.  The fourth
> >>>>>>> installs the built source file into R.  I've assumed Windows.
> >>>>>>> If you are on Linux replace rename with mv.
> >>>>>>>
> >>>>>>> rename RGoogleDocs_0.2-2.tar.gz RgoogleDocs_0.2.2-src.tar.gz
> >>>>>>> tar xvfz RgoogleDocs_0.2.2-src.tar.gz
> >>>>>>> Rcmd build RGoogleDocs
> >>>>>>> Rcmd INSTALL RGoogleDocs_0.2-2.tar.gz
> >>>>>>>
> >>>>>>> or
> >>>>>>>
> >>>>>>> 2. if RGoogleDocs_0.2-2.tar.gz is already a built 
> source file then
> >>>>>>> you
> >>>>>>> can just issue the last of the above lines and don't need
> >>>>>>> the others.
> >>>>>>>
> >>>>>>> On Thu, Jun 18, 2009 at 7:52 PM, Farrel 
> Buchinsky<fjbuch at gmail.com>
> >>>>>>> wrote:
> >>>>>>>
> >>>>>>>  What do you mean by "cd the.directory.containing.RGoogleDocs"
> >>>>>>>>
> >>>>>>>> Do you mean the directory where I downloaded the
> >>>>>>>> RGoogleDocs_0.2-2.tar.gz
> >>>>>>>> to? Or do you mean that I must create a directory 
> called RGoogleDocs
> >>>>>>>>
> >>>>>>>>  under
> >>>>>>>
> >>>>>>>  Library and then change to that directory?
> >>>>>>>>
> >>>>>>>> Farrel Buchinsky
> >>>>>>>> Google Voice Tel: (412) 567-7870
> >>>>>>>>
> >>>>>>>>
> >>>>>>>>
> >>>>>>>> On Mon, Mar 2, 2009 at 22:16, Gabor Grothendieck <
> >>>>>>>>
> >>>>>>>>  ggrothendieck at gmail.com>
> >>>>>>>
> >>>>>>>  wrote:
> >>>>>>>>
> >>>>>>>>  Finally enter into the Windows console:
> >>>>>>>>>
> >>>>>>>>> cd the.directory.containing.RGoogleDocs
> >>>>>>>>> Rcmd build RGoogleDocs
> >>>>>>>>> Rcmd INSTALL RGoogleDocs_1.0.0.tar.gz
> >>>>>>>>>
> >>>>>>>>> except replace RGoogleDocs_1.0.0.tar.gz with the filename
> >>>>>>>>> created by the build.
> >>>>>>>>>
> >>>>>>>>>       [[alternative HTML version deleted]]
> >>>>>>
> >>>>>> ______________________________________________
> >>>>>> R-help at 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.
> >>>>>>
> >>>>>>
> >>>>       [[alternative HTML version deleted]]
> >>>>
> >>>>
> >>>>
> >>>> 
> --------------------------------------------------------------
> ----------
> >>>>
> >>>> ______________________________________________
> >>>> R-help at 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.
> >>>>
> >>>
> >>
> >>        [[alternative HTML version deleted]]
> >>
> >>
> >>
> >> 
> --------------------------------------------------------------
> ----------
> >>
> >> ______________________________________________
> >> R-help at 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 at 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 at 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.
> 




More information about the R-help mailing list