A possible work around would be to append the selection.r file to the .Rhistory file and then reload the history, e.g.
    file.append(".Rhistory", .trPaths[5])
    loadhistory(file= ".Rhistory")    
You can then access the code on the console, skipping the last 2 lines.
	[[alternative HTML version deleted]]

