Displaying 2 results from an estimated 2 matches for "wirld".
Did you mean:
wired
2016 Oct 03
2
On implementing zero-overhead code reuse
...s flogging the same horse, but for the non-expert I create and
attach a complete package
devtools::create("myutils")
library(myutils)
Of course it doesn't do anything, so I write my code by editing a plain
text file myutils/R/foo.R to contain
foo = function() "hello wirld"
then return to my still-running R session and install the updated
package and use my new function
devtools::install("myutils")
foo()
myutils::foo() # same, but belt-and-suspenders
I notice my typo, update the file, and use the updated package
devtools::install(&quo...
2016 Oct 03
3
On implementing zero-overhead code reuse
On Mon, Oct 3, 2016 at 10:18 AM, <frederik at ofb.net> wrote:
> Hi Kynn,
>
> Thanks for expanding.
>
> I wrote a function like yours when I first started using R. It's
> basically the same up to your "new.env()" line, I don't do anything
> with environmentns. I just called my function "mysource" and it's
> essentially a "source