Displaying 20 results from an estimated 25 matches for "kynn".
Did you mean:
kann
2016 Oct 03
4
On implementing zero-overhead code reuse
...overhead" I mean that the only thing needed for
library code to be accessible to client code is for it to be located
in designed directory. No additional meta-files, packaging/compiling,
etc. are required.
Best,
G.
On Sun, Oct 2, 2016 at 7:09 PM, <frederik at ofb.net> wrote:
> Hi Kynn,
>
> Do you mind defining the term "zero-overhead model of code reuse"?
>
> I think I understand what you're getting at, but not sure.
>
> Thank you,
>
> Frederick
>
> On Sun, Oct 02, 2016 at 01:29:52PM -0400, Kynn Jones wrote:
>> I'm looking fo...
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
> essentiall...
2016 Oct 03
0
On implementing zero-overhead code reuse
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 with path"....
2016 Oct 03
0
On implementing zero-overhead code reuse
...ing the expert's perspective is likely to
result in excluding the non-experts.
Best, kj
On Mon, Oct 3, 2016 at 12:06 PM, Kasper Daniel Hansen
<kasperdanielhansen at gmail.com> wrote:
>
>
> 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...
2009 May 22
2
how to insert NULLs in lists?
...ngth(x)
[1] 2
I just could NOT believe my eyes! Am I going crazy???
What I'm trying to do is so simple and straightforward: I want to be able to
append NULL to a list, and, after the appending, have the last element of
the list be NULL. Is that so unreasonable? How can it be done?
TIA!
Kynn
[[alternative HTML version deleted]]
2016 Oct 03
2
On implementing zero-overhead code reuse
On 10/03/2016 01:51 PM, Kynn Jones wrote:
> Thank you all for your comments and suggestions.
>
> @Frederik, my reason for mucking with environments is that I want to
> minimize the number of names that import adds to my current
> environment. For instance, if module foo defines a function bar, I
> want my cl...
2009 Jun 25
1
R data inspection under gdb?
...sed to mean
here).
What I'd like to do is print out SEXP's the way that the R interactive
interpreter would display them if one evaluated them on the command line,
but to do this from within gdb, or at least via a PRINT function called
directly within the C code.
Is this possible?
TIA!
Kynn
[[alternative HTML version deleted]]
2016 Oct 02
5
On implementing zero-overhead code reuse
I'm looking for a way to approximate the "zero-overhead" model of code
reuse available in languages like Python, Perl, etc.
I've described this idea in more detail, and the motivation for this
question in an earlier post to R-help
(https://stat.ethz.ch/pipermail/r-help/2016-September/442174.html).
(One of the responses I got advised that I post my question here instead.)
The
2005 Nov 02
2
Anything like associative arrays in R?
Let me preface my question by stressing that I am much less interested
in the answer than in learning a way I could have *found the answer
myself*. (As helpful as the participants in this list are, I have far
too many R-related questions to resolve by posting here, and as I've
written before, in my experience the R documentation has not been very
helpful, but I remain hopeful that I may have
2009 Jun 12
1
Fast JSON <-> R converter?
Is there a *fast* converter between JSON and R? I'm aware of the rjson
package, but it is implemented in R, and it is too slow for my purposes.
TIA!
kynn
[[alternative HTML version deleted]]
2009 Jun 13
1
conditional dependencies & loading
...her* RJSONIO *or*
rjson? (I.e. both are not required.)
Second, what's the best-practice R idiom for such conditional loading? I.e.
I'm looking for R's equivalent of Python's
>>> try:
... import json
... except ImportError:
... import simplejson as json
Thanks!
kynn
[[alternative HTML version deleted]]
2009 May 20
10
How to google for R stuff?
Hi! I'm new to R programming, though I've been programming in other
languages for years.
One thing I find most frustrating about R is how difficult it is to use
Google (or any other search tool) to look for answers to my R-related
questions. With languages with even slightly more distinctive names like
Perl, Java, Python, Matlab, OCaml, etc., usually including the name of the
language
2009 Jun 02
1
How to generate R objects in C?
...me
time, but I can't find the constructors for such objects (here I'm
using the term "constructor" loosely). I'm even further from finding
the C equivalent of "my.list[[ length(my.list) + 1 ]] <- new.thing".
Can someone point me in the right direction?
Thanks!
Kynn
2009 Jun 12
1
Issues converting from JSON to R
...is a valid JSON
object: { "": 123 }), but as far as I can tell, R does not allow the empty
string as a name in a named list:
> list(""=123)
Error: attempt to use zero-length variable name
Any suggestions for dealing with these edge cases would be much appreciated!
TIA!
kynn
[[alternative HTML version deleted]]
2009 Jun 26
1
bug in Rf_PrintValue ?
...thout saving workspace
4: exit R saving workspace
Selection: 1
aborting ...
zsh: segmentation fault env -i PATH=/bin:/usr/bin R_HOME=$(./myR/bin/R
RHOME) ./bug -q --vanilla
I think the problem has to do with the fact that there may already exist a
cached copy of "coverage" .
Regards,
Kynn
PS: Any comments on my code would be very welcome; I'm very much the noob
with all this.
[[alternative HTML version deleted]]
2016 Oct 02
0
On implementing zero-overhead code reuse
Hi Kynn,
Do you mind defining the term "zero-overhead model of code reuse"?
I think I understand what you're getting at, but not sure.
Thank you,
Frederick
On Sun, Oct 02, 2016 at 01:29:52PM -0400, Kynn Jones wrote:
> I'm looking for a way to approximate the "zero-overhead&qu...
2009 Jun 18
1
ScalarLong?
I was surprised to see that there is a ScalarInteger function in
Rinlinedfuns.h, but nothing like ScalarLong.
How can one create an R-integer from a C long?
TIA!
kynn
[[alternative HTML version deleted]]
2009 May 23
1
Can a function know what other function called it?
Suppose function foo calls function bar. Is there any way in which
bar can find out the name of the function that called it, "foo"?
There are two generalization to this question that interest me.
First, can this query go farther up the call stack? I.e. if bar now
calls baz, can baz find out the name of the function that called the
function that called it, i.e. "foo"?
2009 May 19
4
Qs: The list of arguments, wrapping functions...
Hi. I'm pretty new to R, but I've been programming in other languages for
some time. I have a couple of questions regarding programming with function
objects.
1. Is there a way for a function to refer generically to all its actual
arguments as a list? I'm thinking of something like the @_ array in Perl or
the arguments variable in JavaScript. (By "actual" I mean the ones
2009 Jun 06
1
Qs on calling R from C
...at this initialization should be.
If someone could point me in the right direction I'd appreciate it.
Also, where is the documentation for the call_R function? It is mentioned
several times in the Writing R Extensions document, but I have not been able
to find the documentation for it.
TIA!
Kynn
[[alternative HTML version deleted]]