Thanks a lot!

But how about removing "all the functions" in the whole "myprogram1.R"
source file?

The reason for asking this is of course, after I made some changes, I saved
it, and then I wanted the functions to be reloaded into memory so that I
can do "mtrace", or "browser" etc.

Thank you!

On Tue, Dec 6, 2011 at 12:17 PM, Duncan Murdoch <murdoch.dun...@gmail.com>wrote:

>  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
>

        [[alternative HTML version deleted]]

______________________________________________
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.

Reply via email to