Re: [Rd] Example in pdf() help file (PR#8083)

From: <ripley_at_stats.ox.ac.uk>
Date: Mon 22 Aug 2005 - 07:47:45 GMT


  This message is in MIME format. The first part should be readable text,   while the remaining parts are likely unreadable without MIME-aware tools.

--27464147-1188682158-1124696849=:32369
Content-Type: TEXT/PLAIN; charset=iso-8859-1; format=flowed Content-Transfer-Encoding: QUOTED-PRINTABLE

Please consult the help _file_! This is correct in the file, but has been= =20
incorrectly marked for conversion (now fixed).

On Mon, 22 Aug 2005 Erik.Jorgensen@agrsci.dk wrote:

>
> The example in the help file for pdf() plots the characters outside
> the plotting area in this for loop:
>
> for(i in c(32:255)) {
> x <- i
> y <- i
> points(x, y, pch=3Di)
> }
>
> The following loop seems to be working as intended
>
> for(i in c(32:255)) {
> x <- (i-31)%%16
> y <- (i-31)%/%16
> points(x, y, pch=3Di)
> }

No, i%%16 etc was intended.

> As an extra observation, with code page ISOLatin2, the pdf-file fails to
> open in Ghostview 4.7 using ghostscript 8.51. Error message below. In
> Acrobat Reader 7.0 it opens without problems. It is quite possible that
> it is the settings on my computer that causes the error,

It's nothing to do with R, but to do with how your computer is set. BTW, I am pretty sure this is GSView 4.7, a different program.

> but I include the dump of the error message, just in case anybody was
> interested
>
> Best regards
>
> Erik J=F8rgensen
> Danish Institute of Agricultural Sciences
>
> --please do not edit the information below--
>
> Version:
> platform =3D i386-pc-mingw32
> arch =3D i386
> os =3D mingw32
> system =3D i386, mingw32
> status =3D
> major =3D 2
> minor =3D 1.1
> year =3D 2005
> month =3D 06
> day =3D 20
> language =3D R
>
> Windows XP Professional (build 2600) Service Pack 2.0
>
> Locale:
> LC_COLLATE=3DDanish_Denmark.1252;LC_CTYPE=3DDanish_Denmark.1252;LC_MONETA=
RY=3DDanish_Denmark.1252;LC_NUMERIC=3DC;LC_TIME=3DDanish_Denmark.1252
>
> Search Path:
> .GlobalEnv, package:lattice, package:methods, package:stats,
> package:graphics, package:grDevices, package:utils, package:datasets,
> Autoloads, package:base
>
>
>
> -------------------
>
> GSview 4.7 2005-03-26
> AFPL Ghostscript 8.51 (2005-04-18)
> Copyright (C) 2005 artofcode LLC, Benicia, CA. All rights reserved.
> This software comes with NO WARRANTY: see the file PUBLIC for details.
> Scanning PDF file
> %GSVIEW_PDF_PAGES: 1 1
> Displaying PDF page 1
> %GSVIEW_PDF_PAGE: 1
> %GSVIEW_PDF_MEDIA: [0 0 432 432]
> %GSVIEW_PDF_ROTATE: 0
> Loading NimbusSanL-Regu font from c:\gs\fonts/n019003l.pfb... 2291320
> 946479 1594968 288125 3 done.
> Error: /typecheck in --lt--
> Operand stack:
> --dict:4/4(L)-- F2 1 --dict:5/5(L)-- --dict:5/5(L)--
> --dict:15/16(ro)(G)-- --nostringval-- --nostringval-- 1
> --nostringval-- 1 --nostringval--
> Execution stack:
> %interp_exit .runexec2 --nostringval-- --nostringval--
> --nostringval-- 2 %stopped_push --nostringval-- --nostringval--
> false 1 %stopped_push 1 3 %oparray_pop 1 3
> %oparray_pop 1 3 %oparray_pop 1 3 %oparray_pop .runexec2
> --nostringval-- --nostringval-- --nostringval-- 2
> %stopped_push --nostringval-- --nostringval-- --nostringval--
> --nostringval-- --nostringval-- %array_continue --nostringval--
> false 1 %stopped_push --nostringval-- %loop_continue
> --nostringval-- --nostringval-- --nostringval-- --nostringval--
> --nostringval-- --nostringval-- %array_continue --nostringval--
> Dictionary stack:
> --dict:1129/1686(ro)(G)-- --dict:0/20(G)-- --dict:79/200(L)--

> --dict:105/127(ro)(G)-- --dict:251/347(ro)(G)-- --dict:21/24(L)--
> --dict:4/6(L)-- --dict:20/20(L)-- --dict:10/13(L)--
> Current allocation mode is local
> pdf_page failed
>
> ______________________________________________
> R-devel@r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/r-devel
>
>

--=20

Brian D. Ripley,                  ripley@stats.ox.ac.uk
Professor of Applied Statistics,  http://www.stats.ox.ac.uk/~ripley/
University of Oxford,             Tel:  +44 1865 272861 (self)
1 South Parks Road,                     +44 1865 272866 (PA)
Oxford OX1 3TG, UK                Fax:  +44 1865 272595
--27464147-1188682158-1124696849=:32369--

R-devel@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-devel Received on Mon Aug 22 17:51:11 2005

This archive was generated by hypermail 2.1.8 : Mon 24 Oct 2005 - 22:27:40 GMT