You probably want to read the Introduction to R that comes with R
(menu: Help>Manuals (in PDF)>Introduction to R).

If you have an function, f, and you type just 'f', then R prints the function,
just as it does for any other object.
  > z <- function(x)
  + {
  +     if (missing(x)) "<missing x>" else x + 100
  + }
  > z
  function (x)
  {
      if (missing(x)) "<missing x>" else x + 100
  }
If you want to evaluate a function you must supply the arguments in
parentheses (even if there are no arguments you need the parentheses).
  > z(10:12)
  [1] 110 111 112
  > z()
  [1] "<missing x>"

Bill Dunlap
TIBCO Software
wdunlap tibco.com

From: Jon Nash [mailto:jon.n...@hvhs.school.nz]
Sent: Monday, March 10, 2014 11:14 AM
To: William Dunlap
Subject: Re: [R] R Help

Hi Bill,
I start with a > prompt
I type the command in the syntax that appears to be correct
I immediately get a > prompt back
I type getwd and get no indication of any directory at all just the following:
> getwd
function ()
.Internal(getwd())
<bytecode: 0x000000000cb0df80>
<environment: namespace:base>

Jon

On 11 March 2014 03:42, William Dunlap 
<wdun...@tibco.com<mailto:wdun...@tibco.com>> wrote:
> I open up the GUI and type setwd("c:/users/jon") and press return. Nothing
> happens
Does "nothing happens" mean that R does not even print "> ", prompting you
to enter more input?

Did you get such a prompt before typing setwd("...")?

What does typing
   5:2
cause R to do?

Bill Dunlap
TIBCO Software
wdunlap tibco.com<http://tibco.com>


> -----Original Message-----
> From: r-help-boun...@r-project.org<mailto:r-help-boun...@r-project.org> 
> [mailto:r-help-boun...@r-project.org<mailto:r-help-boun...@r-project.org>] On 
> Behalf
> Of Jon Nash
> Sent: Monday, March 10, 2014 1:59 AM
> To: r-help@r-project.org<mailto:r-help@r-project.org>
> Subject: [R] R Help
>
> I have just installed R 3.0.3 on Windows 7.
>
> I open up the GUI and type setwd("c:/users/jon") and press return. Nothing
> happens, Ive tried manuals, forums etc ...
>
> An ex-student needs help using this program.  I spent 7 years as an IT
> consultant before becoming a maths teacher so Im better than average with
> IT and I cant get it to do anything at all.  What's up?  Any help greatly
> appreciated.
>
> Jon
>
>       [[alternative HTML version deleted]]
>
> ______________________________________________
> R-help@r-project.org<mailto:R-help@r-project.org> mailing list
> 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.


        [[alternative HTML version deleted]]

______________________________________________
R-help@r-project.org mailing list
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