Commit 60ed1b02 authored by Dirk Eddelbuettel's avatar Dirk Eddelbuettel

Import Upstream version 2.8.1

parent 3df739da
This diff is collapsed.
Revision: 46754
Last Changed Date: 2008-10-20
Revision: 47281
Last Changed Date: 2008-12-22
This diff is collapsed.
......@@ -5,7 +5,10 @@ The bulk of this code is copyright by members of or all of the R
Development Core Team.
See the file COPYING for the exact conditions under which you may
redistribute it.
redistribute it. R as a whole is distributed under GPL version 2:
most source files contain a copyright statement allow use of that file
under GPL version 2 or later: the main exceptions are packages 'rpart'
and 'survival' (GPL-2 only) and bundle 'VR' (GPL-2 or GPL-3).
The status of files used only in the Windows port is in file
src/gnuwin32/COPYRIGHTS.win, which is appended to this file in binary
......@@ -162,7 +165,7 @@ src/library/stats/src/Trunmed.c
In part Copyright (C) 1995 Berwin A. Turlach
src/library/tcltk/exec/*.tcl
src/library/tcltk/exec/{hierarchy,util*,widget}.tcl
Copyright (c) various dates Jeffrey Hobbs
......
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
......@@ -6429,7 +6429,7 @@ command like
Users connected to the Internet can use the @code{install.packages()}
and @code{update.packages()} functions (available through the
@code{Packages} menu in the Windows and RAqua GUIs, @pxref{Installing
packages, , , R-admin, R Installation and Adminstration}) to install and
packages, , , R-admin, R Installation and Administration}) to install and
update packages.
To see which packages are currently loaded, use
......
......@@ -1195,7 +1195,7 @@ even if this was known (and e.g.@: @code{scan} would not know the
encoding of the file it was reading). This lead to packages with data
in French encoded in Latin-1 in @code{.rda} files which could not be
read in other locales (and they would be able to be displayed in a
French UTF-8 locale, if not in most Japanese locales).
French UTF-8 locale, if not in non-UTF-8 Japanese locales).
@R{} 2.5.0 introduced a limited means to indicate the encoding of a
@code{CHARSXP} via two of the `general purpose' bits which are used to
......@@ -1207,9 +1207,9 @@ display in hexadecimal bytes that are not valid in the current locale).
Many (but not all) of the character manipulation functions will either
preserve the declaration or re-encode the character string.
Eventually strings that refer to the OS such as file names will need to
be passed through a wide-character interface on some OSes
(e.g. Windows), which is to a large extent done as from @R{} 2.7.0.
Strings that refer to the OS such as file names need to be passed
through a wide-character interface on some OSes (e.g. Windows), which is
to a large extent done as from @R{} 2.7.0.
When are character strings declared to be of known encoding? One way is
to do so directly via @code{Encoding}. The parser declares the encoding
......@@ -1219,8 +1219,9 @@ the @R{} command line. (Other ways are recorded on the help page for
@code{Encoding}.)
It is not necessary to declare the encoding of ASCII strings as they
will work in any locale, but the overhead in doing so is small since
they will never be passed to @command{iconv} for translation.
will work in any locale. As from @R{} 2.8.0, ASCII strings should never
have a marked encoding, as any encoding will be ignored when entering
such strings into the @code{CHARSXP} cache.
The rationale behind considering only UTF-8 and Latin-1 is that most
systems are capable of producing UTF-8 strings and this is the nearest
......@@ -1249,13 +1250,13 @@ Windows has no UTF-8 locales, but rather expects to work with
UCS-2@footnote{or UTF-16 if support for surrogates is enabled in the OS,
which it is not normally at least for Western versions of Windows,
despite some claims to the contrary on the Microsoft site.} strings.
@R{} (being written in standard C) will not work internally with UCS-2
@R{} (being written in standard C) would not work internally with UCS-2
without extensive changes. As from @R{} 2.7.0 the @file{Rgui}
console@footnote{but not the GraphApp toolkit.} uses UCS-2 internally,
but communicates with the @R{} engine in the native encoding. To allow
UTF-8 strings to be printed in UTF-8, an escape convention is used (see
header @file{rgui_UTF8.h}) which is used by @code{cat}, @code{print} and
autoprinting.
UTF-8 strings to be printed in UTF-8 in @file{Rgui.exe}, an escape
convention is used (see header @file{rgui_UTF8.h}) which is used by
@code{cat}, @code{print} and autoprinting.
`Unicode' (UCS-2LE) files are common in the Windows world, and
@code{readLines} and @code{scan} will read them into UTF-8 strings on
......@@ -1282,9 +1283,18 @@ the cache. @code{CHARSXP}s reloaded from the @code{save} formats of
@R{} prior to 0.99.0 are not cached (since the code used is frozen and
few examples still exist). Prior to @R{} 2.8.0, @code{CHARSXP}s were
used to hold the finalizer function of a C finalizer (uncached) -- now
@code{RAWSXP}s are used. Finally, user code could create
@code{RAWSXP}s are used. Finally, user code could create uncached
@code{CHARSXP}s via @code{allocString} (removed in @R 2.8.0) and
@code{allocVector(CHARSXP ...)} (deprecated in @R 2.8.0).
@code{allocVector(CHARSXP ...)} (deprecated in @R 2.8.0, removed in @R{}
2.9.0).
@findex mkCharLenCE
The cache records the encoding of the string as well as the bytes: all
requests to create a @code{CHARSXP} should be @emph{via} a call to
@code{mkCharLenCE}. As from @R{} 2.8.0 any encoding given in
@code{mkCharLenCE} call will be ignored if the string's bytes are all
ASCII characters.
@node Warnings and errors, S4 objects, The CHARSXP cache, R Internal Structures
@section Warnings and errors
......
......@@ -1715,7 +1715,7 @@ named @code{"aa"} and @code{"aabb"} is the only name which has prefix
@code{exact} argument which defaults to @code{NA} indicating that
partial matching is allowed, but should result in a warning when it
occurs. Setting @code{exact} to @code{TRUE} prevents partial matching
from occuring, a @code{FALSE} value allows it and does not issue any
from occurring, a @code{FALSE} value allows it and does not issue any
warnings. Note that @code{[} always requires an exact match. The string
@code{""} is treated specially: it indicates `no name' and matches no
element (not even those without a name). Note that partial matching is
......
......@@ -11,9 +11,10 @@ R_PAPERSIZE=${R_PAPERSIZE-'@R_PAPERSIZE@'}
## Default print command
R_PRINTCMD=${R_PRINTCMD-'@R_PRINTCMD@'}
## Default TeXMF stuff
R_LATEXCMD=${R_LATEXCMD-${LATEX-'@LATEX@'}}
R_DVIPSCMD=${R_DVIPSCMD-${DVIPS-'@DVIPS@'}}
R_MAKEINDEXCMD=${R_MAKEINDEX-${MAKEINDEX-'@MAKEINDEX@'}}
R_LATEXCMD=${R_LATEXCMD-${LATEX-'latex'}}
R_PDFLATEXCMD=${R_PDFLATEXCMD-${PDFLATEX-'pdflatex'}}
R_DVIPSCMD=${R_DVIPSCMD-${DVIPS-'dvips'}}
R_MAKEINDEXCMD=${R_MAKEINDEXCMD-${MAKEINDEX-'makeindex'}}
R_RD4DVI=${R_RD4DVI-'@R_RD4DVI@'}
R_RD4PDF=${R_RD4PDF-'@R_RD4PDF@'}
## Default zip/unzip commands
......
......@@ -3049,7 +3049,7 @@ AC_DEFUN([R_BZLIB],
[if test "x${use_system_bzlib}" = xyes; then
AC_CHECK_LIB(bz2, BZ2_bzlibVersion, [have_bzlib=yes], [have_bzlib=no])
if test "${have_bzlib}" = yes; then
AC_CHECK_HEADER(bzlib.h, [have_bzlib=yes], [have_bzlib=no])
AC_CHECK_HEADERS(bzlib.h, [have_bzlib=yes], [have_bzlib=no])
fi
else
have_bzlib=no
......
......@@ -5,6 +5,8 @@
## size_max.m4 stdint_h.m4 uintmax_t.m4 ulonglong.m4 visibility.m4
## wchar_t.m4 wint_t.m4 xsize.m4 > .../m4/gettext.m4
## Then disable testing for libiconv prefix
# gettext.m4 serial 59 (gettext-0.16.1)
dnl Copyright (C) 1995-2006 Free Software Foundation, Inc.
dnl This file is free software; the Free Software Foundation
......@@ -502,7 +504,7 @@ AC_DEFUN([AM_ICONV_LINKFLAGS_BODY],
dnl Search for libiconv and define LIBICONV, LTLIBICONV and INCICONV
dnl accordingly.
AC_LIB_LINKFLAGS_BODY([iconv])
dnl AC_LIB_LINKFLAGS_BODY([iconv])
])
AC_DEFUN([AM_ICONV_LINK],
......@@ -512,7 +514,7 @@ AC_DEFUN([AM_ICONV_LINK],
dnl Search for libiconv and define LIBICONV, LTLIBICONV and INCICONV
dnl accordingly.
AC_REQUIRE([AM_ICONV_LINKFLAGS_BODY])
dnl AC_REQUIRE([AM_ICONV_LINKFLAGS_BODY])
dnl Add $INCICONV to CPPFLAGS before performing the following checks,
dnl because if the user has installed libiconv and not disabled its use
......
......@@ -200,7 +200,7 @@ if test ${r_cv_java_works} = yes; then
done
if test -z "${jmdinc}"; then
# ultima-ratio: use find and pray that it works
jmdinc=`find "${jinc}/" -name jni_md.h 2>dev/null |head -n 1 2>/dev/null`
jmdinc=`find "${jinc}/" -name jni_md.h 2>/dev/null |head -n 1 2>/dev/null`
if test -n "${jmdinc}"; then jmdinc=`dirname "${jmdinc}"`; fi
fi
if test -n "${jmdinc}"; then
......
This diff is collapsed.
......@@ -25,6 +25,10 @@ use R::Dcf;
fileparse_set_fstype; # Unix, in case one gets anything else.
## switch on autoflushing for STDOUT. We want this as we
## write to both STDERR (warnings) and STDOUT.
$| = 1;
@knownoptions = ("rhome:s", "html", "txt", "latex", "example", "debug|d",
"dosnames", "chm", "index");
GetOptions (@knownoptions) || usage();
......
This diff is collapsed.
This diff is collapsed.
......@@ -61,6 +61,10 @@ static void Rintfn(double *x, int n, void *ex)
if(length(resultsxp) != n)
error("evaluation of function gave a result of wrong length");
if(TYPEOF(resultsxp) == INTSXP) {
resultsxp = coerceVector(resultsxp, REALSXP);
} else if(TYPEOF(resultsxp) != REALSXP)
error("evaluation of function gave a result of wrong type");
for(i = 0; i < n; i++) {
x[i] = REAL(resultsxp)[i];
if(!R_FINITE(x[i]))
......
This diff is collapsed.
This diff is collapsed.
......@@ -20,6 +20,6 @@ time_t is signed, which it is on all sensible platforms.)
To remake it, use a machine with zic in the path (it may be /usr/sbin/zic).
Copy the current version of tzdataXXXXx.tar.gz to this directory and run
make -f Make.zi VERSION=2008g
make -f Make.zi VERSION=2008i
for the appropriate version.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
......@@ -1321,9 +1321,10 @@ static void de_mousedown(control c, int buttons, point xy)
rr.width = (strlen(prev) + 2) * (DE->p->fw);
addto(DE->de);
DE->celledit = newfield_no_border(prev, rr);
settextfont(DE->celledit, DE->p->f);
setbackground(DE->celledit, DE->p->bg);
setforeground(DE->celledit, DE->p->ufg);
settextfont(DE->celledit, DE->p->f);
show(DE->celledit);
DE->CellEditable = TRUE;
} else if (buttons & LeftButton) {
......
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!