Displaying 5 results from an estimated 5 matches for "insertsourc".
Did you mean:
insertsource
2018 Jan 29
2
bug [methods]: double execution of `insertSource` within the same session does not work
Hello everyone,
I hope this reaches someone at all. It's my first bug report to the R-core,
and, apparently, bugzilla is locked from new reports for now.
I was using `methods::insertSource` to debug and successfully fix another
package, until it suddenly stopped working. I figured out, that it is
because I am using it on the same function multiple times within one
session. It also produces warnings even during the first call, but somehow
still works. Below I provide a reproducible e...
2018 Jan 29
0
bug [methods]: double execution of `insertSource` within the same session does not work
...at 8:06 AM, Demetrio Rodriguez T. <
demetrio.rodriguez.t at gmail.com> wrote:
> Hello everyone,
>
>
> I hope this reaches someone at all. It's my first bug report to the R-core,
> and, apparently, bugzilla is locked from new reports for now.
>
> I was using `methods::insertSource` to debug and successfully fix another
> package, until it suddenly stopped working. I figured out, that it is
> because I am using it on the same function multiple times within one
> session. It also produces warnings even during the first call, but somehow
> still works. Below I prov...
2010 Jul 16
1
Inserting and testing revised functions in a package
...eturning an
environment object which is a snapshot of the code. From this
environment, functions and methods can be inserted into the environment
of the package in the current session. The insertion uses the trace()
mechanism, so the original code can be restored.
The one-step version is:
insertSource("mySourceFile.R", package = "myPackage", functions = "foo")
This is intended specially for those of us who own largish packages. (It
proved useful in debugging itself, e.g.) You can use the other trace()
mechanisms with it, with a little care, as well as debug() e...
2010 Oct 15
0
R 2.12.0 is released
...the formula
class now displays the associated environment if it is not the
global environment.
? A new facility has been added for inserting code into a package
without re-installing it, to facilitate testing changes which can
be selectively added and backed out. See ?insertSource.
? New function readRenviron to (re-)read files in the format of
~/.Renviron and Renviron.site.
? require() will now return FALSE (and not fail) if loading the
package or one of its dependencies fails.
? aperm() now allows argument perm to be a character vector when...
2010 Oct 15
0
R 2.12.0 is released
...the formula
class now displays the associated environment if it is not the
global environment.
? A new facility has been added for inserting code into a package
without re-installing it, to facilitate testing changes which can
be selectively added and backed out. See ?insertSource.
? New function readRenviron to (re-)read files in the format of
~/.Renviron and Renviron.site.
? require() will now return FALSE (and not fail) if loading the
package or one of its dependencies fails.
? aperm() now allows argument perm to be a character vector when...