Peter Muhlberger
2003-Jul-25 21:38 UTC
[R] Programs stopped working--.print (newbie question)
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
Spencer Graves
2003-Jul-25 21:53 UTC
[R] Programs stopped working--.print (newbie question)
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