[R-SIG-Mac] getting history() to work
Rob Goedman
robjgoedman at me.com
Sun Apr 11 23:13:47 CEST 2010
David,
From R.app you can't. History is kept in a separate file as specified by the Startup preferences.
In your case I don't think RHOME is defined, try '~/Rhistory' or '~/.Rosxhistory' in the Startup preferences, enter a few commands and quit R.app ( e.g.Apple/Command-Q, little red button or from the menu, NOT q() ) and restart R.app to see if the commands are in the history list.
Rob
On Apr 8, 2010, at 1:56 AM, David wrote:
> When I type history() to the R console, I get a new window that is
> always blank. How can I get history() working?
>
> Here are the details of my set-up. In the plist, a number of keys were
> listed that looked like passwords. Because I didn't understand the
> security implications (almost certainly non-existent), I mangled
> these.
>
> Mac Os X 10.4.11 (upgrading to Leopard as soon as I get some free
> time)
> PowerPC G4
>
> response to typing 'version' to R console
> platform powerpc-apple-darwin8.11.1
> arch powerpc
> os darwin8.11.1
> system powerpc, darwin8.11.1
> status
> major 2
> minor 8.0
> year 2008
> month 10
> day 20
> svn rev 46754
> language R
> version.string R version 2.8.0 (2008-10-20)
>
> About R:
> R.app GUI 1.26 (5256), S.Urbanek & S.M.Iacus, © R Foundation for
> Statistical Computing, 2008
>
> Open R. getwd(). Close R. Remove .Rhistory, using shell command. Open
> R. Type a few commands. Close R. No file called .Rhistory.
>
> Response to Sys.getenv()
> AWK
> "awk"
> CVS_RSH
> "ssh"
> DISPLAY
> ":0"
> EDITOR
> "vi"
> EGREP
> "/usr/bin/grep -E"
> HOME
> "/Users/dbae"
> LANG
> "en_GB.UTF-8"
> LN_S
> "ln -s"
> MAKE
> "make"
> MY
> "/Users/dbae/Documents/_MyData"
> PAGER
> "/usr/bin/less"
> PATH
> "/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin"
> PERL
> "/usr/bin/perl"
> R_ARCH
> "/ppc"
> R_BROWSER
> "/usr/bin/open"
> R_DOC_DIR
> "/Library/Frameworks/R.framework/Versions/2.8/Resources/doc"
> R_DVIPSCMD
> "false"
> R_GUI_APP_REVISION
> "5256"
> R_GUI_APP_VERSION
> "1.26"
> R_HISTFILE
> "$HOME/.Rhistory"
> R_HISTSIZE
> "1000"
> R_HOME
> "/Library/Frameworks/R.framework/Versions/2.8/Resources"
> R_INCLUDE_DIR
> "/Library/Frameworks/R.framework/Versions/2.8/Resources/include"
> R_LATEXCMD
> "false"
> R_LIBS
> "$HOME/lib/R:/usr/local/lib/R-contrib"
> R_LIBS_SITE
> ""
> R_LIBS_USER
> "~/Library/R/2.8/library"
> R_MAKEINDEXCMD
> "false"
> R_PAPERSIZE
> "a4"
> R_PDFVIEWER
> "/usr/bin/open"
> R_PLATFORM
> "powerpc-apple-darwin8.11.1"
> R_PRINTCMD
> "lpr"
> R_RD4DVI
> "ae"
> R_RD4PDF
> "times,hyper"
> R_SESSION_TMPDIR
> "/tmp/RtmpudXUd0"
> R_SHARE_DIR
> "/Library/Frameworks/R.framework/Versions/2.8/Resources/share"
> R_UNZIPCMD
> "/usr/bin/unzip"
> R_USE_AQUA_SUBDIRS
> "yes"
> R_ZIPCMD
> "/usr/bin/zip"
> SECURITYSESSIONID
> "a0da50"
> SED
> "/usr/bin/sed"
> SHELL
> "/bin/tcsh"
> SSH_AUTH_SOCK
> "/tmp/502/SSHKeychain.socket"
> TAR
> "tar"
> USER
> "dbae"
> _GOOGLE_GILD_RUNTIME_FRAMEWORK_ABSOLUTE_PATH_
> "/Library/Google/Frameworks/Gild.framework"
> __CF_USER_TEXT_ENCODING
> "0x1F6:0:0"
>>
>
>
>
>
> Property List Dump
> <?xml version="1.0" encoding="UTF-8"?>
> <!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://
> www.apple.com/DTDs/PropertyList-1.0.dtd">
> <plist version="1.0">
> <dict>
> <key>Append RAqua libs to R_LIBS</key>
> <string>NO</string>
> <key>Background Color</key>
> <data>
> BAt0eXBlZHN0cmVhbYED6IQBQISEhAdOU0NvbG9yAISECE5TT2JqZWN0AIWEAWMDhAJm
> ZgEBhg==
> </data>
> <key>Cleanup history entries</key>
> <string>YES</string>
> <key>Disable R signal handlers</key>
> <string>NO</string>
> <key>DocHelpSearch</key>
> <array>
> <string>gantt</string>
> </array>
> <key>Edit or source in file</key>
> <string>YES</string>
> <key>Enable line wrapping if TRUE</key>
> <string>YES</string>
> <key>Enforce initial wd on startup</key>
> <string>NO</string>
> <key>External Editor Name</key>
> <string>TextEdit</string>
> <key>Highlight interval</key>
> <string>0.30</string>
> <key>History file path used for R type history files</key>
> <string>.Rhistory</string>
> <key>Import history file on startup if TRUE</key>
> <string>YES</string>
> <key>Input Color</key>
> <data>
> BAt0eXBlZHN0cmVhbYED6IQBQISEhAdOU0NvbG9yAISECE5TT2JqZWN0AIWEAWMBhARm
> ZmZmAAABAYY=
> </data>
> <key>Is it a .app or a command</key>
> <string>YES</string>
> <key>Line fragment padding in editor</key>
> <string>6.0</string>
> <key>Line number gutter width</key>
> <string>16.0</string>
> <key>Max number of history entries</key>
> <string>250</string>
> <key>NSNavBrowserPreferedColumnContentWidth</key>
> <real>186</real>
> <key>NSNavLastCurrentDirectory</key>
> <string>~/Documents/_MyData/bio/OurGroup/Luxian/
> comparisonComputerHuman</string>
> <key>NSNavLastRootDirectory</key>
> <string>~/Documents/_MyData</string>
> <key>NSNavPanelExpandedSizeForOpenMode</key>
> <string>{520, 401}</string>
> <key>NSNavPanelExpandedSizeForSaveMode</key>
> <string>{519, 401}</string>
> <key>NSNavPanelExpandedStateForSaveMode</key>
> <true/>
> <key>NSRecentDocumentRecords</key>
> <array>
> <dict>
> <key>_NSLocator</key>
> <dict>
> <key>_NSAlias</key>
> <data>
> AAAAAAFcAAIAAAZUb3R0aWUAAAAAAAAAAAAAAAAAAAAA
> YzA2ZGFjOAAAEwABLwD//wAA
> </data>
> </dict>
> </dict>
> <dict>
> <key>_NSLocator</key>
> <dict>
> <key>_NSAlias</key>
> <data>
> AAAAAAFcAAIAAAZUb3R0aWUAAAAAAAAAAAAAAAAAAAAA
> MGI3YWNkOQAAEwABLwD//wAA
> </data>
> </dict>
> </dict>
> <dict>
> <key>_NSLocator</key>
> <dict>
> <key>_NSAlias</key>
> <data>
> AAAAAAE8AAIAAAZUb3R0aWUAAAAAAAAAAAAAAAAAAAAA
> aEZRLzQxYTcAABMAAS8A//8AAA==
> </data>
> </dict>
> </dict>
> <dict>
> <key>_NSLocator</key>
> <dict>
> <key>_NSAlias</key>
> <data>
> AAAAAAF4AAIAAAZUb3R0aWUAAAAAAAAAAAAAAAAAAAAA
> NDkyABMAAS8A//8AAA==
> </data>
> </dict>
> </dict>
> <dict>
> <key>_NSLocator</key>
> <dict>
> <key>_NSAlias</key>
> <data>
> AAAAAAFcAAIAAAZUb3R0aWUAAAAAAAAAAAAAAAAAAAAA
> MGI3YWNkOQAAEwABLwD//wAA
> </data>
> </dict>
> </dict>
> <dict>
> <key>_NSLocator</key>
> <dict>
> <key>_NSAlias</key>
> <data>
> AAAAAAF4AAIAAAZUb3R0aWUAAAAAAAAAAAAAAAAAAAAA
> NzgyABMAAS8A//8AAA==
> </data>
> </dict>
> </dict>
> <dict>
> <key>_NSLocator</key>
> <dict>
> <key>_NSAlias</key>
> <data>
> AAAAAAFcAAIAAAZUb3R0aWUAAAAAAAAAAAAAAAAAAAAA
> MGI3YWNkOQAAEwABLwD//wAA
> </data>
> </dict>
> </dict>
> <dict>
> <key>_NSLocator</key>
> <dict>
> <key>_NSAlias</key>
> <data>
> AAAAAAFcAAIAAAZUb3R0aWUAAAAAAAAAAAAAAAAAAAAA
> NDMxYjc4MgAAEwABLwD//wAA
> </data>
> </dict>
> </dict>
> <dict>
> <key>_NSLocator</key>
> <dict>
> <key>_NSAlias</key>
> <data>
> AAAAAAFcAAIAAAZUb3R0aWUAAAAAAAAAAAAAAAAAAAAA
> MGI3YWNkOQAAEwABLwD//wAA
> </data>
> </dict>
> </dict>
> <dict>
> <key>_NSLocator</key>
> <dict>
> <key>_NSAlias</key>
> <data>
> AAAAAAF8AAIAAAZUb3R0aWUAAAAAAAAAAAAAAAAAAAAA
> YjUwYzJhAAATAAEvAP//AAA=
> </data>
> </dict>
> </dict>
> </array>
> <key>NSTableView Columns NSNavOutlineColumnSettings.v1</key>
> <array>
> <data>
> BAt0eXBlZHN0cmVhbYED6IQBQISEhAhOU1N0cmluZwGEhAhOU09iamVjdACF
> hAErHE5TTmF2RGlzcGxheU5hbWVGaWxlUHJvcGVydHmG
> </data>
> <string>225</string>
> <data>
> BAt0eXBlZHN0cmVhbYED6IQBQISEhAhOU1N0cmluZwGEhAhOU09iamVjdACF
> hAErGE5TTmF2TW9kRGF0ZUZpbGVQcm9wZXJ0eYY=
> </data>
> <string>119</string>
> </array>
> <key>NSTableView Columns select list</key>
> <array>
> <data>
> BAt0eXBlZHN0cmVhbYED6IQBQISEhAhOU1N0cmluZwGEhAhOU09iamVjdACF
> hAErBGl0ZW2G
> </data>
> <string>271</string>
> </array>
> <key>NSTableView Sort Ordering NSNavOutlineColumnSettings.v1</key>
> <array>
> <data>
> BAt0eXBlZHN0cmVhbYED6IQBQISEhAhOU1N0cmluZwGEhAhOU09iamVjdACF
> hAErGE5TTmF2TW9kRGF0ZUZpbGVQcm9wZXJ0eYY=
> </data>
> <false/>
> </array>
> <key>NSTableView Sort Ordering select list</key>
> <array/>
> <key>NSToolbar Configuration R Toolbar Identifier</key>
> <dict>
> <key>TB Display Mode</key>
> <integer>1</integer>
> <key>TB Icon Size Mode</key>
> <integer>1</integer>
> <key>TB Is Shown</key>
> <integer>1</integer>
> <key>TB Item Identifiers</key>
> <array>
> <string>Interrupt Computation Item Identifier</string>
> <string>Source/Load R Code Identifier</string>
> <string>New Quartz Device Item Identifier</string>
> <string>X11 Item Identifier</string>
> <string>NSToolbarSeparatorItem</string>
> <string>Authentication Item Identifier</string>
> <string>Show History Item Identifier</string>
> <string>SetColors Item Identifier</string>
> <string>NSToolbarSeparatorItem</string>
> <string>Load File in Editor Item Identifier</string>
> <string>New Edit Window Item Identifier</string>
> <string>NSToolbarPrintItem</string>
> <string>NSToolbarSeparatorItem</string>
> <string>NSToolbarFlexibleSpaceItem</string>
> <string>Quit R Item Identifier</string>
> </array>
> <key>TB Size Mode</key>
> <integer>1</integer>
> <key>TB Visibility Priority Values</key>
> <dict/>
> </dict>
> <key>NSWindow Frame Help Search Topics Window</key>
> <string>200 27 1148 767 0 0 1680 1028 </string>
> <key>NSWindow Frame PreferencesWindow</key>
> <string>717 652 200 122 0 0 1680 1028 </string>
> <key>NSWindow Frame R Console Output.txt</key>
> <string>653 243 562 632 0 0 1680 1028 </string>
> <key>NSWindow Frame R Data Editor Window</key>
> <string>239 425 480 382 0 0 1680 1028 </string>
> <key>NSWindow Frame R Help Window</key>
> <string>127 160 1116 708 0 0 1680 1028 </string>
> <key>NSWindow Frame R Workspace Browser Window</key>
> <string>95 306 480 425 0 0 1680 1028 </string>
> <key>NSWindow Frame SelectListWindow</key>
> <string>233 281 302 466 0 0 1680 1028 </string>
> <key>Output Color</key>
> <data>
> BAt0eXBlZHN0cmVhbYED6IQBQISEhAdOU0NvbG9yAISECE5TT2JqZWN0AIWEAWMDhAJm
> ZgABhg==
> </data>
> <key>Prompt Color</key>
> <data>
> BAt0eXBlZHN0cmVhbYED6IQBQISEhAdOU0NvbG9yAISECE5TT2JqZWN0AIWEAWMBhARm
> ZmZmgz8AAAAAgz8AAAABhg==
> </data>
> <key>QuartzPrefPane DPI</key>
> <string></string>
> <key>QuartzPrefPane height</key>
> <string>5</string>
> <key>QuartzPrefPane location</key>
> <string>Top Left</string>
> <key>QuartzPrefPane width</key>
> <string>5</string>
> <key>Remove duplicate history entries</key>
> <string>NO</string>
> <key>Root Color</key>
> <data>
> BAt0eXBlZHN0cmVhbYED6IQBQISEhAdOU0NvbG9yAISECE5TT2JqZWN0AIWEAWMBhARm
> ZmZmgz8AAAAAgz8AAAABhg==
> </data>
> <key>Show brace highlighting</key>
> <string>YES</string>
> <key>Show function args hints</key>
> <string>YES</string>
> <key>Show line numbers</key>
> <string>YES</string>
> <key>Show syntax coloring</key>
> <string>YES</string>
> <key>Stderr Color</key>
> <data>
> BAt0eXBlZHN0cmVhbYED6IQBQISEhAdOU0NvbG9yAISECE5TT2JqZWN0AIWEAWMBhARm
> ZmZmAQAAAYY=
> </data>
> <key>Stdout Color</key>
> <data>
> BAt0eXBlZHN0cmVhbYED6IQBQISEhAdOU0NvbG9yAISECE5TT2JqZWN0AIWEAWMDhAJm
> ZoM/AAAAAYY=
> </data>
> <key>Strip comment history entries</key>
> <string>NO</string>
> <key>Use Internal Editor</key>
> <string>YES</string>
> <key>Use QuartzPrefPane values</key>
> <string>NO</string>
> <key>Working directory</key>
> <string>~</string>
> <key>auto.close.parens</key>
> <string>YES</string>
> <key>default.CRAN.mirror.URL</key>
> <string></string>
> <key>helpBrowserSearchHistory</key>
> <array>
> <string>latex.table</string>
> </array>
> <key>pkgInstaller.customURL</key>
> <string>http://R.research.att.com/</string>
> <key>save.on.exit</key>
> <string>ask</string>
> <key>saveOnExit</key>
> <string>ask</string>
> </dict>
> </plist>
>
> _______________________________________________
> R-SIG-Mac mailing list
> R-SIG-Mac at stat.math.ethz.ch
> https://stat.ethz.ch/mailman/listinfo/r-sig-mac
More information about the R-SIG-Mac
mailing list