Skip to content
Back to formatted view

Raw Message

Message-ID: <4EDE5C20.8090305@gmail.com>
Date: 2011-12-06T18:17:04Z
From: Duncan Murdoch
Subject: How to de-source and re-source a file?
In-Reply-To: <CAPNjSFZQDA-cyLc=de1CANYkRqWh_tZvSoO4AQGDX+KaQedKyA@mail.gmail.com>

On 06/12/2011 1:10 PM, Michael wrote:
> i.e. how to make sure the function that was loaded into workspace/memory is
> the version that I edited latest... not some stale version...
>
> This might solve some of my breakpoint and browser/debug problem, even the
> RStudio problem that I've met....

You can use rm() to remove a function.

You can also quit and restart R, making sure that it *does not* load an 
existing workspace (by deleting the .Rdata file if it exists, and never 
answering "yes" to the question to save it.)  This gives you a nice 
clean slate.

Duncan Murdoch