Salut Marc,
On 15 November 2006 at 14:56, Marc Glisse wrote:
| Hello,
|
| first, I am very sorry for not answering in a timely manner, the email
| address I used for the bug report stopped working without giving me any
| notice, and I thought reportbug had failed to submit a bug...
|
| >Looking at it again, I see of course that you are right -- there are now two
| >lines matching R_PAPERSIZE. But despite the bad text that is displayed, at
| >the substitution seems to work as I have
| >
| >[EMAIL PROTECTED]:~> grep PAPER /etc/R/Renviron
| >## Default printer paper size: first record if user set R_PAPERSIZE
| >R_PAPERSIZE_USER=${R_PAPERSIZE}
| >R_PAPERSIZE=${R_PAPERSIZE-'letter'}
| >[EMAIL PROTECTED]:~> paperconf
| >letter
| >[EMAIL PROTECTED]:~>
| >
| >which is the right value for me here.
|
| Yes well, letter is the only papersize for which this used to work (no
| substitution needed). I had configured a4, and I would get the same
I am truly sorry but I have a hard time understanding what it is that you
want to do in this email.
Inferring from your Normale Sup email address, I presume you are in France
and want a4 paer. Is that correct? Furthermore, does
$ paperconf
say 'a4' as the reply?
| result as yours (that is: letter).
|
|
| After your patch (with 2.4.0.20061103-1), I am getting:
| R_PAPERSIZE_USER='a4'
| R_PAPERSIZE=${R_PAPERSIZE-'letter'}
That is the desired behaviour. If R sees R_PAPERSIZE_USER set, it will use it
and override R_PAPERSIZE. So you should get a4.
| This is not what I expected, I thought I was supposed to get:
| R_PAPERSIZE_USER=${R_PAPERSIZE}
| R_PAPERSIZE=${R_PAPERSIZE-'a4'}
I was trying for that once, but that does not work that way since R 2.4.0
(see the NEWS file). What this does is set R_PAPERSIZE_USER to R_PAPERSEIZE
--- but R_PAPERSIZE is undefined on Debian (as we do not set env. vars by
default). So you just created an emptu R_PAPERSIZE_USER which will confuse R>
| I now have:
| stedding ~ $ echo 'print(options("papersize"))' | R --slave
| $papersize
| [1] "a4"
Correct.
| stedding ~ $ export R_PAPERSIZE=letter
| stedding ~ $ echo 'print(options("papersize"))' | R --slave
| $papersize
| [1] "a4"
| (should be letter I guess)
No. Debian does not use environment variables. You are supposed to set
papersize with
$ /usr/sbin/paperconfig -p letter
after which you would have to run the r-base-core postinst. [ Actually, and
that will only alter a factory setting so it won't do anything in this case. ]
Your environment variable clashes with the config file, and the config file
does not respect / listen to the env var. So the env var is a null-op.
| Thanks for your time, please add this new email address in Cc: to any
| answer,
Thanks for getting back to me. I hope I interpreted your email correctly. If
not, please try again and state assumptions, results and side-effects as
plainly as possible.
Your bug report was very helpful, and I appreciate your help in makeing R on
Debian better. Keep helping :)
Regards, Dirk
--
Hell, there are no rules here - we're trying to accomplish something.
-- Thomas A. Edison
--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]