[R] Programs stopped working--.print (newbie question)

Peter Muhlberger peterm at andrew.cmu.edu
Fri Jul 25 23:38:53 CEST 2003


I must have messed up my R environment, but don't know how or how to undo
it.  The problem is this:

I paste the following into R:

test<-function()
{
    print("hello")
}

And I see this:

> test<-function()
+ {
+ .print("hello")
+ }
> test()
Error in test() : couldn't find function ".print"
> 

When I do the same in a fresh environment, I see this:

> test <-function()
+ {
+ print("hello")
+ }

> test2()
[1] "hello"

Peter




More information about the R-help mailing list