[Rd] \dontshow

Kurt Hornik Kurt.Hornik at wu-wien.ac.at
Sat Sep 10 12:01:47 CEST 2005


>>>>> Gabor Grothendieck writes:

> On 9/9/05, Gabor Grothendieck <ggrothendieck at gmail.com> wrote:
>> In R 2.2.0 I find that even if I use \dontshow in the examples section
>> of an .Rd file that the code still shows.
>> 
>> Has anyone else seen this?
>> 
>> Are there any packages that use this facility that I could
>> try in order to check this?
>> 
>> I am using
>> 
>> > R.version.string # XP
>> "R version 2.2.0, 2005-09-03"
>> 

> I realize that this description was not clear enough.  It does not
> show in the help file but when you run the example it shows
> and it was that part I was concerned about.  Is that the way its
> supposed to work?

According to the docs, yes.  R-exts has

     For example,

          x <- runif(10)       # Shown and run.
          \dontrun{plot(x)}    # Only shown.
          \dontshow{log(x)}    # Only run.

-k



More information about the R-devel mailing list