forked from cran/gdata
-
Notifications
You must be signed in to change notification settings - Fork 0
/
INSTALL
63 lines (43 loc) · 2.29 KB
/
INSTALL
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
Windows
=======
The instructions below relate to Windows only and are not relevant to other
platforms.
On Windows, the perl based routines (read.xls, xls2sep, xls2csv, xls2tab,
xls2tsv, sheetNames, sheetCount) will work with ActiveState perl but not with
Rtools perl.
If you have ActiveState perl installed and the pl extension is associated with
it (which the ActiveState installer associates automatically) then read.xls and
other perl based routines in gdata will automatically locate ActiveState perl
if you omit the perl= argument on these commands even if Rtools perl is ahead
of it on your path. e.g.
read.xls("mysheet.xls")
Alternately you can use the perl= argument with a path to ActiveState perl to
ensure it uses the right one. e.g.
read.xls("mysheet.xls", perl = "C:\\Perl\\bin\\perl.exe")
Also ensure that gdata was built with ActiveState Perl and not Rtools perl.
This may require rebuilding gdata yourself like this:
1. Download and install the following (which all have automatic Windows
installers and are therefore very easy to install):
R (you likely already have R so you can likely skip this one)
http://www.r-project.org
Rtools
http://www.murdoch-sutherland.com/Rtools/
ActiveState perl (ActivePerl)
http://www.activestate.com/activeperl/
2. If simply installing gdata in the usual way from within R results in
read.xls and associated perl-based routines not working then re-install
gdata yourself like this:
Download gdata_*.tar.gz from:
http://cran.r-project.org/web/packages/gdata/index.html
and install it at the Windows console (not from within R):
Rcmd INSTALL --build gdata_*.tar.gz
Note: Rcmd is normally found in C:\Program Files\R\R-*\bin and if that
is not on your path the above command should be written:
"C:\Program Files\R\R-*\bin\Rcmd.exe" INSTALL --build gdata_*.tar.gz
where the the path to Rcmd.exe should be replaced with the output of this
R command:
normalizePath(file.path(R.home(), "bin", "Rcmd.exe"))
Note: On Vista and above you may need to run Rcmd as Administrator.
Note: In the above the * in gdata_*.tar.gz should be replaced with the
current version of gdata as found on:
http://cran.r-project.org/web/packages/gdata/index.html