I want to temporarily modify the function lattice:::print.trellis
. I can use edit
to open the function code in editor but changes will be discarded after exit the editor (not the R session). I also tried fix
but met the following error:
> fix(lattice:::print.trellis)
Error in fix(lattice:::print.trellis) : 'fix' requires a name
>
Can anybody explain the error? Is there anyway to modify this invisible function conveniently and temporarily (only effective in the current session)?
BTW, the lattice
library is already loaded.