Commit 0041705c authored by Dirk Eddelbuettel's avatar Dirk Eddelbuettel

Import Debian changes 2.5.0-2

r-base (2.5.0-2) unstable; urgency=low

  * src/nmath/standalone/Makefile.in,src/scripts/Makefile.in,
    src/unix/Makefile.in: Applied patch by Martyn Plummer which 
    brings R closer to standard GNU behaviour with respect to
    'make install' redirection. In particular, this fixes the 
    new binary /usr/bin/Rscript which was broken in 2.5.0-1, also
    corrects /usr/pkgconfig/libR.pc, adds the a new file 
    /usr/pkgconfig/libRmath.pc (for r-mathlib) and also corrects
    /usr/bin/R which we used to patch post-'make install'.
  
  * debian/control: Added Depends: for r-recommended on r-cran-rcompgen
    as this package is now in Debian unstable.
  
  * /etc/ld.so.conf.d/R.conf: Added new file so that libR.so and 
    libRlapack.so will be known to ld.so

  * debian/rules: Call configure with --enable-memory-profiling
parent 889ac646
diff -uNr R-2.5.0/src/nmath/standalone/Makefile.in R-2.5.0-patched/src/nmath/standalone/Makefile.in
--- R-2.5.0/src/nmath/standalone/Makefile.in 2007-03-26 18:42:08.000000000 +0200
+++ R-2.5.0-patched/src/nmath/standalone/Makefile.in 2007-04-29 14:50:55.000000000 +0200
@@ -67,7 +67,7 @@
libRmath_la_LDFLAGS =
CLEANFILES = Makedeps *.d *.o *.lo test $(SOURCES)
-DISTCLEANFILES = Makefile $(Rexeclibdir_LIBRARIES) $(Rexeclibdir_LTLIBRARIES)
+DISTCLEANFILES = Makefile libRmath.pc $(Rexeclibdir_LIBRARIES) $(Rexeclibdir_LTLIBRARIES)
DEFS = -DHAVE_CONFIG_H -DMATHLIB_STANDALONE
ALL_CPPFLAGS = $(R_XTRA_CPPFLAGS) -I$(srcdir)/.. $(CPPFLAGS) $(DEFS)
@@ -78,7 +78,7 @@
@r_cc_lo_rules_frag@
-all: Makefile inc static shared
+all: Makefile inc static shared build-pc
inc:
(cd ../../include; $(MAKE) Rmath.h)
@@ -100,6 +100,11 @@
shared: Makefile ../../include/Rconfig.h Copy Makedeps
@$(MAKE) $(Rexeclibdir_LTLIBRARIES)
+build-pc:
+ @$(SED) -e "s:@libdir:$(libdir):" -e "s:@includedir:$(includedir):" \
+ -e 's/@VERSION/$(VERSION)/' -e 's/@libm/$(LIBM)/' $(srcdir)/libRmath.pc.in \
+ > "libRmath.pc"
+
../../include/Rconfig.h:
(cd $(@D); $(MAKE) $(@F))
@@ -163,9 +168,7 @@
install-pc:
@$(MKINSTALLDIRS) "$(libdir)/pkgconfig"
- @$(SED) -e "s:@libdir:$(libdir):" -e "s:@includedir:$(includedir):" \
- -e 's/@VERSION/$(VERSION)/' -e 's/@libm/$(LIBM)/' $(srcdir)/libRmath.pc.in \
- > "$(libdir)/pkgconfig/libRmath.pc"
+ @$(INSTALL_DATA) libRmath.pc "$(libdir)/pkgconfig/libRmath.pc"
uninstall:
@rm -f $(includedir)/Rmath.h $(libdir)/$(libRmath_la) $(libdir)/libRmath.a "$(libdir)/pkgconfig/libRmath.pc"
diff -uNr R-2.5.0/src/scripts/Makefile.in R-2.5.0-patched/src/scripts/Makefile.in
--- R-2.5.0/src/scripts/Makefile.in 2007-03-26 18:42:09.000000000 +0200
+++ R-2.5.0-patched/src/scripts/Makefile.in 2007-04-29 14:50:14.000000000 +0200
@@ -23,17 +23,22 @@
DISTFILES = Makefile.in Makefile.win $(SCRIPTS_S) $(SCRIPTS_B_IN) R.sh.in
CLEANFILES =
-DISTCLEANFILES = Makefile R.fe R.sh $(SCRIPTS_B)
+DISTCLEANFILES = Makefile R.fe R.fe2 R.sh $(SCRIPTS_B)
all: Makefile R
Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
@cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@
-R: $(SCRIPTS_B) R.fe
+R: $(SCRIPTS_B) R.fe R.fe2
@$(MAKE) rhome=$(top_builddir) install-cmds
@$(INSTALL_SCRIPT) R.fe $(top_builddir)/bin/R
+R.fe2:
+ @(d=`echo '$(rhome)' | sed 's,/,\\\/,g';`; \
+ sed -e "s/\\(R_HOME_DIR=\\).*/\\1$${d}/;" -e "s+\\(R_SHARE_DIR=\\).*+\\1$(rsharedir)+;" -e "s+\\(R_INCLUDE_DIR=\\).*+\\1$(rincludedir)+;" -e "s+\\(R_DOC_DIR=\\).*+\\1$(rdocdir)+;"\
+ < R.fe > $@)
+
## <NOTE>
## Seems we need target rules for creating FOO from FOO.in: pattern
## rules ('%:%.in') are not portable, and some versions of Make do not
@@ -95,10 +100,8 @@
install: installdirs install-cmds
@rm -f $(bindir)/R
- @(d=`echo '$(rhome)' | sed 's,/,\\\/,g';`; \
- sed -e "s/\\(R_HOME_DIR=\\).*/\\1$${d}/;" -e "s+\\(R_SHARE_DIR=\\).*+\\1$(rsharedir)+;" -e "s+\\(R_INCLUDE_DIR=\\).*+\\1$(rincludedir)+;" -e "s+\\(R_DOC_DIR=\\).*+\\1$(rdocdir)+;"\
- < R.fe > "$(Rexecbindir)/R")
- @$(INSTALL_SCRIPT) "$(Rexecbindir)/R" "$(bindir)/R"
+ @$(INSTALL_SCRIPT) R.fe2 "$(Rexecbindir)/R"
+ @$(INSTALL_SCRIPT) R.fe2 "$(bindir)/R"
@chmod 755 "$(bindir)/R" "$(Rexecbindir)/R"
## why of all the scriots does this alone chmod just one copy?
installdirs:
diff -uNr R-2.5.0/src/unix/Makefile.in R-2.5.0-patched/src/unix/Makefile.in
--- R-2.5.0/src/unix/Makefile.in 2007-03-26 18:41:33.000000000 +0200
+++ R-2.5.0-patched/src/unix/Makefile.in 2007-04-29 14:51:55.000000000 +0200
@@ -26,7 +26,7 @@
@WANT_R_SHLIB_TRUE@ALL_CFLAGS = $(ALL_CFLAGS_LO)
-all: Makefile Makedeps R
+all: Makefile Makedeps R
Makefile: $(srcdir)/Makefile.in \
$(top_builddir)/config.status \
@@ -38,11 +38,23 @@
@cat $(DEPENDS) >> Makefile
@touch $@
-R: Makefile
+R: Makefile
@$(MAKE) Makedeps
@WANT_R_SHLIB_FALSE@ @$(MAKE) libunix.a
@WANT_R_SHLIB_TRUE@ @$(MAKE) stamp-lo
+ @$(MAKE) rhome=$(abs_top_builddir) build-Rscript
@$(MAKE) rhome=$(abs_top_builddir) install-Rscript
+ @$(MAKE) build-Rscript
+ @$(MAKE) build-pc
+
+build-pc:
+ @$(SED) -e "s:@rhome:$(rhome):" -e "s:@rincludedir:$(rincludedir):" \
+ -e 's/@VERSION/$(VERSION)/' $(srcdir)/libR.pc.in \
+ > "libR.pc"
+
+build-Rscript:
+ $(CC) $(ALL_CPPFLAGS) $(ALL_CFLAGS) -DR_HOME='"$(rhome)"' -o Rscript \
+ $(srcdir)/Rscript.c
## is this portable?
../include/Rversion.h:
@@ -60,22 +72,19 @@
clean:
@-rm -rf .libs _libs
@-rm -f Makedeps *.d *.o *.a *.lo *.la stamp-lo
+ @-rm -f Rscript libR.pc
distclean: clean
@-rm -f Makefile
maintainer-clean: distclean
-## we need to build at install time to capture the correct 'rhome'
+## install previously built Rscript
install-Rscript:
- $(CC) $(ALL_CPPFLAGS) $(ALL_CFLAGS) -DR_HOME='"$(rhome)"' -o Rscript \
- $(srcdir)/Rscript.c
@$(MKINSTALLDIRS) "$(Rexecbindir)"
@$(INSTALL_PROGRAM) Rscript "$(Rexecbindir)/Rscript"
-## substitute at install time to allow 'prefix' to be overridden
+## install previously built libR.pc
install-pc:
@$(MKINSTALLDIRS) "$(libdir)/pkgconfig"
- @$(SED) -e "s:@rhome:$(rhome):" -e "s:@rincludedir:$(rincludedir):" \
- -e 's/@VERSION/$(VERSION)/' $(srcdir)/libR.pc.in \
- > "$(libdir)/pkgconfig/libR.pc"
+ @$(INSTALL_DATA) libR.pc "$(libdir)/pkgconfig/libR.pc"
install: install-Rscript @WANT_R_SHLIB_TRUE@ install-pc
@$(MKINSTALLDIRS) "$(bindir)"
@$(INSTALL_PROGRAM) Rscript "$(bindir)/Rscript"
r-base (2.5.0-2) unstable; urgency=low
* src/nmath/standalone/Makefile.in,src/scripts/Makefile.in,
src/unix/Makefile.in: Applied patch by Martyn Plummer which
brings R closer to standard GNU behaviour with respect to
'make install' redirection. In particular, this fixes the
new binary /usr/bin/Rscript which was broken in 2.5.0-1, also
corrects /usr/pkgconfig/libR.pc, adds the a new file
/usr/pkgconfig/libRmath.pc (for r-mathlib) and also corrects
/usr/bin/R which we used to patch post-'make install'.
* debian/control: Added Depends: for r-recommended on r-cran-rcompgen
as this package is now in Debian unstable.
* /etc/ld.so.conf.d/R.conf: Added new file so that libR.so and
libRlapack.so will be known to ld.so
* debian/rules: Call configure with --enable-memory-profiling
-- Dirk Eddelbuettel <edd@debian.org> Wed, 2 May 2007 21:17:47 -0500
r-base (2.5.0-1) unstable; urgency=low
* New upstream release
......
......@@ -219,7 +219,7 @@ Description: GNU R info manuals statistical computing system
Package: r-recommended
Architecture: all
Depends: r-base-core (>= ${Source-Version}), r-cran-boot (>= 1.2.19), r-cran-cluster (>= 1.9.6-2), r-cran-foreign (>= 0.7-2), r-cran-kernsmooth (>= 2.2.14), r-cran-lattice (>= 0.10.11), r-cran-mgcv (>= 1.1.5), r-cran-nlme (>= 3.1.52), r-cran-rpart (>= 3.1.20), r-cran-survival (>= 2.13.2-1), r-cran-vr (>= 7.2.8)
Depends: r-base-core (>= ${Source-Version}), r-cran-boot (>= 1.2.19), r-cran-cluster (>= 1.9.6-2), r-cran-foreign (>= 0.7-2), r-cran-kernsmooth (>= 2.2.14), r-cran-lattice (>= 0.10.11), r-cran-mgcv (>= 1.1.5), r-cran-nlme (>= 3.1.52), r-cran-rcompgen, r-cran-rpart (>= 3.1.20), r-cran-survival (>= 2.13.2-1), r-cran-vr (>= 7.2.8)
Description: GNU R collection of recommended packages [metapackage]
R is `GNU S' - A language and environment for statistical computing
and graphics. R is similar to the award-winning S system, which was
......
# make libR.so and libRlapack.so visible to ld.so
/usr/lib/R/lib
etc/R
etc/ld.so.conf.d
etc/bash_completion.d
usr/bin
usr/lib/R
......
......@@ -205,6 +205,7 @@ configure-stamp:
$(gnomeconfig) \
--enable-R-profiling \
--enable-R-shlib \
--enable-memory-profiling \
--without-recommended-packages \
--build $(buildarch)
......@@ -295,7 +296,7 @@ clean:
-rm -f `find . -name "*~"`
-rm -rf debian/tmp debian/files* core debian/substvars
-rm -f doc/html/function.html doc/html/packages.html
-rm -f modules/*.so
-rm -f modules/*.so src/unix/Rscript
# left over in CVS from r-base --> r-base-core transition
#(cd debian; rm -vf r-base.dirs r-base.files r-base.lintian \
# r-base.menu r-base.postinst)
......@@ -368,7 +369,12 @@ install-arch-stamp:
# edd 25 Sep 2005 link TeX files into texmf
# edd 03 Oct 2006 use link into /usr/share/, not /usr/lib/
(cd $(debtmp)/usr/share/texmf/tex/latex && \
ln -s ../../../R/share/texmf R)
ln -s ../../../R/share/texmf R)
# edd 02 May 2007 fix includedir in libR.pc
(cd $(debtmp)/usr/lib/pkgconfig; \
perl -p -i -e "s|/usr/lib/R/include|/usr/share/R/include|" \
libR.pc )
# that being done, now install in different sub-packages
......@@ -424,7 +430,8 @@ install-arch-stamp:
# dh_installdirs -p$(gnomepackage) usr/share/lintian/overrides
#endif
dh_installdirs -p$(nmathpackage) usr/include usr/lib \
usr/share/lintian/overrides
usr/share/lintian/overrides \
usr/lib/pkgconfig
install -m 0644 src/nmath/standalone/libRmath.a \
$(debmat)/usr/lib
install -m 0644 src/nmath/standalone/libRmath.so \
......@@ -432,6 +439,8 @@ install-arch-stamp:
(cd $(debmat)/usr/lib; \
ln -s libRmath.so.$(libver) libRmath.so.$(somaj); \
ln -s libRmath.so.$(somaj) libRmath.so)
install -m 0644 src/nmath/standalone/libRmath.pc \
$(debmat)/usr/lib/pkgconfig/libRmath.pc
# and create a link for Rmath.h
#(cd $(debmat)/usr/include; \
# ln -s ../lib/R/include/Rmath.h .)
......@@ -474,6 +483,10 @@ install-arch-stamp:
install -m 0644 debian/R.bash_completion \
debian/$(corepackage)/etc/bash_completion.d/R
# edd 02 May 2007 add libR.conf for ld.so
install -m 0644 debian/libR.conf \
debian/$(corepackage)/etc/ld.so.conf.d/libR.conf
touch install-arch-stamp
#install-indep: make-arch make-indep install-arch install-indep-stamp
......
\initial {B}
\entry {\code {BLAS_LIBS}}{28}
\initial {C}
\entry {\code {CONFIG_SITE}}{34}
\initial {D}
\entry {\code {DISPLAY}}{42}
\initial {J}
\entry {\code {JAVA_HOME}}{28}
\initial {L}
\entry {\code {LANG}}{22}
\entry {\code {LANGUAGE}}{22}
\entry {\code {LAPACK_LIBS}}{31}
\entry {\code {LC_ALL}}{22}
\entry {\code {LC_MESSAGES}}{22}
\entry {\code {LD_LIBRARY_PATH}}{36, 38, 44}
\entry {\code {LD_LIBRRARY_PATH}}{30}
\entry {\code {LIBS}}{46}
\initial {P}
\entry {\code {PAPERSIZE}}{35}
\initial {R}
\entry {\code {R_BROWSER}}{35}
\entry {\code {R_DEFAULT_PACKAGES}}{16}
\entry {\code {R_JAVA_LD_LIBRARY_PATH}}{28}
\entry {\code {R_LIBS}}{16, 17}
\entry {\code {R_LIBS_SITE}}{16}
\entry {\code {R_LIBS_USER}}{16}
\entry {\code {R_PAPERSIZE}}{5, 35}
\entry {\code {R_RD4DVI}}{35, 52}
\entry {\code {R_RD4PDF}}{5, 35, 52}
\initial {T}
\entry {\code {TMPDIR}}{3, 10, 15, 17}
......@@ -67,7 +67,7 @@ libRmath_la_OBJECTS = $(OBJECTS:.o=.lo)
libRmath_la_LDFLAGS =
CLEANFILES = Makedeps *.d *.o *.lo test $(SOURCES)
DISTCLEANFILES = Makefile $(Rexeclibdir_LIBRARIES) $(Rexeclibdir_LTLIBRARIES)
DISTCLEANFILES = Makefile libRmath.pc $(Rexeclibdir_LIBRARIES) $(Rexeclibdir_LTLIBRARIES)
DEFS = -DHAVE_CONFIG_H -DMATHLIB_STANDALONE
ALL_CPPFLAGS = $(R_XTRA_CPPFLAGS) -I$(srcdir)/.. $(CPPFLAGS) $(DEFS)
......@@ -78,7 +78,7 @@ ALL_CPPFLAGS = $(R_XTRA_CPPFLAGS) -I$(srcdir)/.. $(CPPFLAGS) $(DEFS)
@r_cc_lo_rules_frag@
all: Makefile inc static shared
all: Makefile inc static shared build-pc
inc:
(cd ../../include; $(MAKE) Rmath.h)
......@@ -100,6 +100,11 @@ static: Makefile ../../include/Rconfig.h Copy Makedeps
shared: Makefile ../../include/Rconfig.h Copy Makedeps
@$(MAKE) $(Rexeclibdir_LTLIBRARIES)
build-pc:
@$(SED) -e "s:@libdir:$(libdir):" -e "s:@includedir:$(includedir):" \
-e 's/@VERSION/$(VERSION)/' -e 's/@libm/$(LIBM)/' $(srcdir)/libRmath.pc.in \
> "libRmath.pc"
../../include/Rconfig.h:
(cd $(@D); $(MAKE) $(@F))
......@@ -163,9 +168,7 @@ install-Rmath-framework: $(libRmath_la)
install-pc:
@$(MKINSTALLDIRS) "$(libdir)/pkgconfig"
@$(SED) -e "s:@libdir:$(libdir):" -e "s:@includedir:$(includedir):" \
-e 's/@VERSION/$(VERSION)/' -e 's/@libm/$(LIBM)/' $(srcdir)/libRmath.pc.in \
> "$(libdir)/pkgconfig/libRmath.pc"
@$(INSTALL_DATA) libRmath.pc "$(libdir)/pkgconfig/libRmath.pc"
uninstall:
@rm -f $(includedir)/Rmath.h $(libdir)/$(libRmath_la) $(libdir)/libRmath.a "$(libdir)/pkgconfig/libRmath.pc"
......
......@@ -23,17 +23,22 @@ distdir = $(top_builddir)/$(PACKAGE)-$(VERSION)/$(subdir)
DISTFILES = Makefile.in Makefile.win $(SCRIPTS_S) $(SCRIPTS_B_IN) R.sh.in
CLEANFILES =
DISTCLEANFILES = Makefile R.fe R.sh $(SCRIPTS_B)
DISTCLEANFILES = Makefile R.fe R.fe2 R.sh $(SCRIPTS_B)
all: Makefile R
Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
@cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@
R: $(SCRIPTS_B) R.fe
R: $(SCRIPTS_B) R.fe R.fe2
@$(MAKE) rhome=$(top_builddir) install-cmds
@$(INSTALL_SCRIPT) R.fe $(top_builddir)/bin/R
R.fe2:
@(d=`echo '$(rhome)' | sed 's,/,\\\/,g';`; \
sed -e "s/\\(R_HOME_DIR=\\).*/\\1$${d}/;" -e "s+\\(R_SHARE_DIR=\\).*+\\1$(rsharedir)+;" -e "s+\\(R_INCLUDE_DIR=\\).*+\\1$(rincludedir)+;" -e "s+\\(R_DOC_DIR=\\).*+\\1$(rdocdir)+;"\
< R.fe > $@)
## <NOTE>
## Seems we need target rules for creating FOO from FOO.in: pattern
## rules ('%:%.in') are not portable, and some versions of Make do not
......@@ -95,10 +100,8 @@ $(top_builddir)/libtool:
install: installdirs install-cmds
@rm -f $(bindir)/R
@(d=`echo '$(rhome)' | sed 's,/,\\\/,g';`; \
sed -e "s/\\(R_HOME_DIR=\\).*/\\1$${d}/;" -e "s+\\(R_SHARE_DIR=\\).*+\\1$(rsharedir)+;" -e "s+\\(R_INCLUDE_DIR=\\).*+\\1$(rincludedir)+;" -e "s+\\(R_DOC_DIR=\\).*+\\1$(rdocdir)+;"\
< R.fe > "$(Rexecbindir)/R")
@$(INSTALL_SCRIPT) "$(Rexecbindir)/R" "$(bindir)/R"
@$(INSTALL_SCRIPT) R.fe2 "$(Rexecbindir)/R"
@$(INSTALL_SCRIPT) R.fe2 "$(bindir)/R"
@chmod 755 "$(bindir)/R" "$(Rexecbindir)/R"
## why of all the scriots does this alone chmod just one copy?
installdirs:
......
......@@ -26,7 +26,7 @@ DISTFILES = \
@WANT_R_SHLIB_TRUE@ALL_CFLAGS = $(ALL_CFLAGS_LO)
all: Makefile Makedeps R
all: Makefile Makedeps R
Makefile: $(srcdir)/Makefile.in \
$(top_builddir)/config.status \
......@@ -38,11 +38,23 @@ Makedeps: Makefile $(DEPENDS)
@cat $(DEPENDS) >> Makefile
@touch $@
R: Makefile
R: Makefile
@$(MAKE) Makedeps
@WANT_R_SHLIB_FALSE@ @$(MAKE) libunix.a
@WANT_R_SHLIB_TRUE@ @$(MAKE) stamp-lo
@$(MAKE) rhome=$(abs_top_builddir) build-Rscript
@$(MAKE) rhome=$(abs_top_builddir) install-Rscript
@$(MAKE) build-Rscript
@$(MAKE) build-pc
build-pc:
@$(SED) -e "s:@rhome:$(rhome):" -e "s:@rincludedir:$(rincludedir):" \
-e 's/@VERSION/$(VERSION)/' $(srcdir)/libR.pc.in \
> "libR.pc"
build-Rscript:
$(CC) $(ALL_CPPFLAGS) $(ALL_CFLAGS) -DR_HOME='"$(rhome)"' -o Rscript \
$(srcdir)/Rscript.c
## is this portable?
../include/Rversion.h:
......@@ -60,22 +72,19 @@ mostlyclean: clean
clean:
@-rm -rf .libs _libs
@-rm -f Makedeps *.d *.o *.a *.lo *.la stamp-lo
@-rm -f Rscript libR.pc
distclean: clean
@-rm -f Makefile
maintainer-clean: distclean
## we need to build at install time to capture the correct 'rhome'
## install previously built Rscript
install-Rscript:
$(CC) $(ALL_CPPFLAGS) $(ALL_CFLAGS) -DR_HOME='"$(rhome)"' -o Rscript \
$(srcdir)/Rscript.c
@$(MKINSTALLDIRS) "$(Rexecbindir)"
@$(INSTALL_PROGRAM) Rscript "$(Rexecbindir)/Rscript"
## substitute at install time to allow 'prefix' to be overridden
## install previously built libR.pc
install-pc:
@$(MKINSTALLDIRS) "$(libdir)/pkgconfig"
@$(SED) -e "s:@rhome:$(rhome):" -e "s:@rincludedir:$(rincludedir):" \
-e 's/@VERSION/$(VERSION)/' $(srcdir)/libR.pc.in \
> "$(libdir)/pkgconfig/libR.pc"
@$(INSTALL_DATA) libR.pc "$(libdir)/pkgconfig/libR.pc"
install: install-Rscript @WANT_R_SHLIB_TRUE@ install-pc
@$(MKINSTALLDIRS) "$(bindir)"
@$(INSTALL_PROGRAM) Rscript "$(bindir)/Rscript"
......
This diff is collapsed.
This diff is collapsed.
%!PS-Adobe-3.0
%%DocumentNeededResources: font Helvetica
%%+ font Helvetica-Bold
%%+ font Helvetica-Oblique
%%+ font Helvetica-BoldOblique
%%+ font Symbol
%%DocumentMedia: special 432 432 0 () ()
%%Title: R Graphics Output
%%Creator: R Software
%%Pages: (atend)
%%BoundingBox: 0 0 432 432
%%EndComments
%%BeginProlog
/bp { gs gs } def
% begin .ps.prolog
/gs { gsave } def
/gr { grestore } def
/ep { showpage gr gr } def
/m { moveto } def
/l { rlineto } def
/np { newpath } def
/cp { closepath } def
/f { fill } def
/o { stroke } def
/c { newpath 0 360 arc } def
/r { 4 2 roll moveto 1 copy 3 -1 roll exch 0 exch rlineto 0 rlineto -1 mul 0 exch rlineto closepath } def
/p1 { stroke } def
/p2 { gsave bg fill grestore newpath } def
/p3 { gsave bg fill grestore stroke } def
/t { 6 -2 roll moveto gsave rotate
ps mul neg 0 2 1 roll rmoveto
1 index stringwidth pop
mul neg 0 rmoveto show grestore } def
/cl { grestore gsave newpath 3 index 3 index moveto 1 index
4 -1 roll lineto exch 1 index lineto lineto
closepath clip newpath } def
/rgb { setrgbcolor } def
/s { scalefont setfont } def
% end .ps.prolog
%%IncludeResource: font Helvetica
/Helvetica findfont
dup length dict begin
{1 index /FID ne {def} {pop pop} ifelse} forall
/Encoding ISOLatin1Encoding def
currentdict
end
/Font1 exch definefont pop
%%IncludeResource: font Helvetica-Bold
/Helvetica-Bold findfont
dup length dict begin
{1 index /FID ne {def} {pop pop} ifelse} forall
/Encoding ISOLatin1Encoding def
currentdict
end
/Font2 exch definefont pop
%%IncludeResource: font Helvetica-Oblique
/Helvetica-Oblique findfont
dup length dict begin
{1 index /FID ne {def} {pop pop} ifelse} forall
/Encoding ISOLatin1Encoding def
currentdict
end
/Font3 exch definefont pop
%%IncludeResource: font Helvetica-BoldOblique
/Helvetica-BoldOblique findfont
dup length dict begin
{1 index /FID ne {def} {pop pop} ifelse} forall
/Encoding ISOLatin1Encoding def
currentdict
end
/Font4 exch definefont pop
%%IncludeResource: font Symbol
/Symbol findfont
dup length dict begin
{1 index /FID ne {def} {pop pop} ifelse} forall
currentdict
end
/Font5 exch definefont pop
%%EndProlog
%%Page: 1 1
bp
0.00 0.00 432.00 432.00 cl
/ps 10 def /Font1 findfont 10 s
0.8549 0.4392 0.8392 rgb
427.68 372.96 (help\("SweaveSyntConv"\)) 1 0 90 t
59.04 73.44 401.76 372.96 cl
0 setgray
2.25 setlinewidth
[] 0 setdash
1 setlinecap
1 setlinejoin
10.00 setmiterlimit
np
82.31 138.46 m
84.62 0 l
o
0.75 setlinewidth
[ 3.00 5.00] 0 setdash
np
124.62 84.53 m
0 38.52 l
o
np
124.62 200.09 m
0 -46.22 l
o
0.75 setlinewidth
[] 0 setdash
np
103.47 84.53 m
42.31 0 l
o
np
103.47 200.09 m
42.31 0 l
o
np
103.47 84.53 m
42.31 0 l
o
np
103.47 200.09 m
42.31 0 l
o
np
103.47 84.53 m
42.31 0 l
o
np
103.47 200.09 m
42.31 0 l
o
np
82.31 123.05 m
84.62 0 l
0 30.82 l
-84.62 0 l
0 -30.82 l
o
2.25 setlinewidth
[] 0 setdash
np
188.09 207.79 m
84.62 0 l
o
0.75 setlinewidth
[ 3.00 5.00] 0 setdash
np
230.40 130.76 m
0 53.92 l
o
np
230.40 292.53 m
0 -53.92 l
o
0.75 setlinewidth
[] 0 setdash
np
209.24 130.76 m
42.32 0 l
o
np
209.24 292.53 m
42.32 0 l
o
np
209.24 130.76 m
42.32 0 l
o
np
209.24 292.53 m
42.32 0 l
o
np
209.24 130.76 m
42.32 0 l
o
np
209.24 292.53 m
42.32 0 l
o
np
188.09 184.68 m
84.62 0 l
0 53.93 l
-84.62 0 l
0 -53.93 l
o
2.25 setlinewidth
[] 0 setdash
np
293.87 254.01 m
84.62 0 l
o
0.75 setlinewidth
[ 3.00 5.00] 0 setdash
np
336.18 184.68 m
0 46.22 l
o
np
336.18 361.87 m
0 -77.04 l
o
0.75 setlinewidth
[] 0 setdash
np
315.02 184.68 m
42.31 0 l
o
np
315.02 361.87 m
42.31 0 l
o
np
315.02 184.68 m
42.31 0 l
o
np
315.02 361.87 m
42.31 0 l
o
np
315.02 184.68 m
42.31 0 l
o
np
315.02 361.87 m
42.31 0 l
o
np
293.87 230.90 m
84.62 0 l
0 53.93 l
-84.62 0 l
0 -53.93 l
o
336.18 130.76 2.70 c p1
0.00 0.00 432.00 432.00 cl
0 setgray
0.75 setlinewidth
[] 0 setdash
1 setlinecap
1 setlinejoin
10.00 setmiterlimit
np
124.62 73.44 m
211.56 0 l
o
np
124.62 73.44 m
0 -7.20 l
o
np
230.40 73.44 m
0 -7.20 l
o
np
336.18 73.44 m
0 -7.20 l
o
/ps 12 def /Font1 findfont 12 s
124.62 47.52 (setosa) .5 0 0 t
230.40 47.52 (versicolor) .5 0 0 t
336.18 47.52 (virginica) .5 0 0 t
np
59.04 99.94 m
0 269.63 l
o
np
59.04 99.94 m
-7.20 0 l
o
np
59.04 138.46 m
-7.20 0 l
o
np
59.04 176.98 m
-7.20 0 l
o
np
59.04 215.50 m
-7.20 0 l
o
np
59.04 254.01 m
-7.20 0 l
o
np
59.04 292.53 m
-7.20 0 l
o
np
59.04 331.05 m
-7.20 0 l
o
np
59.04 369.57 m
-7.20 0 l
o
41.76 99.94 (4.5) .5 0 90 t
41.76 138.46 (5.0) .5 0 90 t
41.76 176.98 (5.5) .5 0 90 t
41.76 215.50 (6.0) .5 0 90 t
41.76 254.01 (6.5) .5 0 90 t
41.76 292.53 (7.0) .5 0 90 t
41.76 331.05 (7.5) .5 0 90 t
41.76 369.57 (8.0) .5 0 90 t
np
59.04 73.44 m
342.72 0 l
0 299.52 l
-342.72 0 l
0 -299.52 l
o
ep
%%Trailer
%%Pages: 1
%%EOF
% -*- mode: noweb; noweb-default-code-mode: R-mode; -*-
\documentclass[a4paper]{article}
\title{A Test File}
\author{Friedrich Leisch}
\SweaveOpts{echo=FALSE}
\usepackage{a4wide}
\begin{document}
\maketitle
A simple example that will run in any S engine: The integers from 1 to
10 are
\begin{Scode}{print=TRUE}
1:10
\begin{Scode}{results=hide}
print(1:20)
\end{Scode} % the above is just to ensure