[R] ? data.entry "read-only" ? [and segfault]
John Fox
jfox at mcmaster.ca
Tue Jan 13 03:41:19 CET 2004
Dear Ted,
At 11:17 PM 1/12/2004 +0000, Ted Harding wrote:
>On 12-Jan-04 John Fox wrote:
> > Dear Ted,
> > [...]
> > invisible(edit(df)),
> > or something equivalent, simply to look (and discard changes if they
> > are made).
>
>Thanks for the reminder about "invisible" -- as well as junk<-de(df)
>one could use invisible(de(df)).
>
>However, users please note:
>
> invisible(data.entry(df))
>
>will change df (since that's what data.entry does "internally" on exit,
>as a "side effect", whether wrapped in "invisible" or not).
Indeed, which is why I suggested edit() rather than calling data.entry()
directly.
Regards,
John
-----------------------------------------------------
John Fox
Department of Sociology
McMaster University
Hamilton, Ontario, Canada L8S 4M4
email: jfox at mcmaster.ca
phone: 905-525-9140x23604
web: www.socsci.mcmaster.ca/jfox
More information about the R-help
mailing list