R sometimes does not save my history -
i have program in r. when save history, not write history file. lost histories few times , drive me crazy.
any recommendation on how avoid this?
first check working directory (getwd()). savehistory() saves history in current working directory. , honest, better specify filename, default .history. :
savehistory('c:/myworkingdir/mysession.rhistory') which allows :
loadhistory('c:/myworkingdir/mysession.rhistory') so history not lost, it's in place , under name weren't aware of. see ?history.
to clarify : history no more text file containing commands of current session. it's nice log of you've done, never use it. construct "analysis log" myself using scripts, hinted in answer.
Comments
Post a Comment