[R] Programs stopped working--.print (newbie question)
Spencer Graves
spencer.graves at pdf.com
Fri Jul 25 23:53:57 CEST 2003
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
>
> ______________________________________________
> R-help at stat.math.ethz.ch mailing list
> https://www.stat.math.ethz.ch/mailman/listinfo/r-help
More information about the R-help
mailing list