[R] Echos for comment line (with #)

Jeff Newmiller jdnewmil at dcn.davis.ca.us
Sun Feb 12 07:56:23 CET 2017


On Sun, 12 Feb 2017, Steven Yen wrote:

> I need help with what may be a simple option in R (or Rstudio)--to
> receive an echo of a comment line.
>
> Running the following two-line script in plain R,
>
> # adding
> 1+2
>
> I did get the echo:
>
> > # adding
> > 1+2
> [1] 3
> >
>
> However, running the same lines in RStudio, the comment line does not
> appear in output:
>
> > 1+2
> [1] 3
> >
>
> Please help. Thanks.

This email list is about R... a language, and the computation engine 
usually used by RStudio. This is not the appropriate place to ask a 
question about the RStudio user interface... see 
https://support.rstudio.com for that.

However, I think you have omitted key information from your question, 
because there are many ways to run R code in RStudio and you did not say 
exactly what you DID. When you ask your question there be sure to be 
more precise about your button clicks and keypresses and menu selections.

---------------------------------------------------------------------------
Jeff Newmiller                        The     .....       .....  Go Live...
DCN:<jdnewmil at dcn.davis.ca.us>        Basics: ##.#.       ##.#.  Live Go...
                                       Live:   OO#.. Dead: OO#..  Playing
Research Engineer (Solar/Batteries            O.O#.       #.O#.  with
/Software/Embedded Controllers)               .OO#.       .OO#.  rocks...1k



More information about the R-help mailing list