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:<jdnew...@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

______________________________________________
R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.

Reply via email to