Peter, Is it possible you have you have 'Strip comments in history entries' checked as well?
On my system: > print(12) # This is a test [1] 12 Pressed up-arrow: > print(12) # This is a test [1] 12 Checked 'Strip comments in history entries' and entered: > print(12) # This is a test [1] 12 Pressed up-arrow: > print(12) [1] 12 Regards, Rob > sessionInfo() R version 2.15.0 Patched (2012-05-21 r59376) Platform: x86_64-apple-darwin9.8.0/x86_64 (64-bit) locale: [1] en_US.UTF-8/en_US.UTF-8/en_US.UTF-8/C/en_US.UTF-8/en_US.UTF-8 attached base packages: [1] stats graphics grDevices utils datasets methods base loaded via a namespace (and not attached): [1] Rcpp_0.9.10 > On May 23, 2012, at 1:36 PM, Peter Dixon <[email protected]> wrote: > Hi - > I want to embed comments in the history file using "#". However, if I have > "Cleanup history entries" checked in the GUI preferences, the "#" is stripped > from the entry so that, for example, if I type "# this is a comment" and then > up-arrow, " this is a comment" is added to the console without the hash. On > the other hand, if I uncheck "Cleanup history entries," then lines retrieved > from the history seem to have an return at the end (which generates extra > blank lines when these entries are executed). I'm thinking that this > behaviour might be a bug since it did not occur with the last version I was > using (R.14.0, R.app GUI 1.42 (5933)). I observed this with a fresh install > of R 2.15.0, R.app GUI 1.51 (6148), but maybe there's something funny about > my configuration that's tickling the latest version? > >> sessionInfo() > R version 2.15.0 (2012-03-30) > Platform: x86_64-apple-darwin9.8.0/x86_64 (64-bit) > > locale: > [1] en_US.UTF-8/en_US.UTF-8/en_US.UTF-8/C/en_US.UTF-8/en_US.UTF-8 > > attached base packages: > [1] stats graphics grDevices utils datasets methods base > > - Pete > --- > Peter Dixon > [email protected] > > > > > [[alternative HTML version deleted]] > > _______________________________________________ > R-SIG-Mac mailing list > [email protected] > https://stat.ethz.ch/mailman/listinfo/r-sig-mac [[alternative HTML version deleted]] _______________________________________________ R-SIG-Mac mailing list [email protected] https://stat.ethz.ch/mailman/listinfo/r-sig-mac
