I see a period "." before 'print' in your function definition. Might this be the problem?

spencer graves

Peter Muhlberger wrote:
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

______________________________________________
[EMAIL PROTECTED] mailing list
https://www.stat.math.ethz.ch/mailman/listinfo/r-help

______________________________________________ [EMAIL PROTECTED] mailing list https://www.stat.math.ethz.ch/mailman/listinfo/r-help

Reply via email to