Package: r-base-core Version: 2.3.1-1 Severity: normal Hi,
r-base-core's postinst only looks once at the system paper size. If the admin
changes it, R won't notice the change:
#Sysfile=`/etc/papersize`
#syspaper=`cat $Sysfile`
syspaper=`/usr/bin/paperconf`
#echo "Papersize in /etc is $syspaper"
Rfile=/etc/R/Renviron
rpaper=`grep ^R_PAPERSIZE $Rfile | cut -d"'" -f2`
#echo "Papersize in Renviron is $rpaper"
if [ "$syspaper" != "$rpaper" ]
then
echo "Changing R_PAPERSIZE from $rpaper to $syspaper"
perl -p -i -e "s|\'$rpaper\'|\'$syspaper\'|" "$Rfile"
fi
/etc/R/Renviron looks like it is a sh script. Wouldn't it better to call
paperconf there?
-- System Information:
Debian Release: testing/unstable
APT prefers unstable
APT policy: (500, 'unstable'), (1, 'experimental')
Architecture: i386 (i686)
Shell: /bin/sh linked to /bin/bash
Kernel: Linux 2.6.8-2-686
Locale: LANG=de_DE.UTF-8, LC_CTYPE=de_DE.UTF-8 (charmap=UTF-8)
Versions of packages r-base-core depends on:
ii atlas3-base [libblas.so.3] 3.6.0-20.2 Automatically Tuned Linear Algebra
ii libbz2-1.0 1.0.3-2 high-quality block-sorting file co
ii libc6 2.3.6-15 GNU C Library: Shared libraries
ii libgcc1 1:4.1.1-5 GCC support library
ii libgfortran0 4.0.3-3 Runtime library for GNU Fortran ap
ii libice6 1:1.0.0-3 X11 Inter-Client Exchange library
ii libjpeg62 6b-13 The Independent JPEG Group's JPEG
ii libpaper-utils 1.1.19 Library for handling paper charact
ii libpcre3 6.4-2 Perl 5 Compatible Regular Expressi
ii libpng12-0 1.2.8rel-5.1 PNG library - runtime
ii libreadline5 5.1-7 GNU readline and history libraries
ii libsm6 1:1.0.0-4 X11 Session Management library
ii libx11-6 2:1.0.0-6 X11 client-side library
ii libxt6 1:1.0.0-5 X11 toolkit intrinsics library
ii perl 5.8.8-6 Larry Wall's Practical Extraction
ii tcl8.4 8.4.12-1 Tcl (the Tool Command Language) v8
ii tk8.4 8.4.12-1 Tk toolkit for Tcl and X11, v8.4 -
ii zlib-bin 1:1.2.3-12 compression library - sample progr
ii zlib1g 1:1.2.3-12 compression library - runtime
Versions of packages r-base-core recommends:
pn r-base-dev <none> (no description available)
pn r-recommended <none> (no description available)
-- no debconf information
Christoph
--
[EMAIL PROTECTED] | http://www.df7cb.de/
signature.asc
Description: Digital signature

