fix(x, file=tempfile("fix"), window=F, display=getenv("DISPLAY"),
geometry="80x24", diff=F, fix=T, save.options=T)
To use a different option value for only the current call to fix, specify save.options=FALSE. To change an option value and save it without editing anything, specify fix=FALSE. Thus one can customize fix options automatically at the start of each S-PLUS session by putting, for example, fix(window=T, diff=T, fix=F) in function .First or environment variable S_FIRST.
The editor program and the pager program (to page the diff) are global S-PLUS options. See the options helpfile.
It is important that such errors be corrected as described before any other use of the fix function, and before exiting the S-PLUS session. Otherwise it may be difficult to locate the file containing one's work.
fix(my.fun) # edit and re-assign my.fun
fix() # edit my.fun again
fix(new.fun) # new.fun does not exist yet
fix(f) # we will leave a syntax error in the file
# Syntax error: Unbalanced parentheses, expected "}", before ")"
# at line 4, file /tmp/fix17056
# Dumped
Errors occurred; Use fix() to re-edit this object.
fix() # get back into same file; omit x argument
fix(f, diff=T) # show me what I changed
fix(f, diff="diff -c") # print a context diff
fix(f, window=T, geometry="80x24+50+50")
# make X11 window 80 characters wide and 24 lines long,
# and [always] place it at coordinates (50,50)
fix(f, window=T, geometry="80x50", save.options=F)
# long window, this time only
fix(window=T, diff=T, fix=F) # set new defaults; no editing
args(fix)
# show function argument defaults, ignoring saved overrides
print(fix(fix=F)) # show saved override values