Displaying 20 results from an estimated 3000 matches similar to: "force promises inside lapply"
2018 Jan 04
0
Coping with non-standard evaluation in R program analysis
Evan,
The pryr package provides some utilities which may be handy here. In
particular see the function: is_promise.
Also, next time please post in plaintext.
Regards
Ben
> Hello R experts,
>
>
> I plan to develop a tool for dynamic analysis of R programs. I would like to trace function calls at runtime, capturing argument and return values. Following a suggestion made some time ago
2015 Feb 26
1
iterated lapply
> On Feb 25, 2015, at 5:35 PM, Benjamin Tyner <btyner at gmail.com> wrote:
>
> Actually, it depends on the number of cores:
Under current semantics, yes. Each 'stream' of function calls is lazily capturing the last value of `i` on that core.
Under Luke's proposed semantics (IIUC),
the result would be the same (2,4,6,8) for both parallel and serial execution. This is
2018 Jan 11
1
OpenBLAS in everyday R?
True or False: when USE_OPENMP=1 is not used, then race conditions are
not unexpected.
If True, and we wish to avoid race conditions, then sources such as the
conda channel and ubuntu would need to add this enhancement.
If False, then what is the next step (i.e. forum) for debugging the race
condition?
On 01/11/2018 07:56 AM, Ista Zahn wrote:
>
>
> On Jan 10, 2018 8:24 PM,
2018 Jan 11
0
OpenBLAS in everyday R?
On Jan 10, 2018 8:24 PM, "Benjamin Tyner" <btyner at gmail.com> wrote:
Thanks Keith. We checked, and indeed libopenblas is not linked against
libomp nor libgomp. We suspect this is because we used conda to install R
and OpenBLAS. So I guess we should be barking up the conda tree instead?
What are you barking about? I don't understand what you are trying to
accomplish.
By
2018 Jan 11
0
OpenBLAS in everyday R?
I?m not really familiar with conda, but if they?re being packaged together then an omp build might be more appropriate.
Perhaps another point for Juan?s list: whether OpenBLAS is the right choice to pair with. The library itself hasn?t produced optimized kernels for any of the Intel *Lake chips yet; might be worth considering its near- and long-term future (vs something else).
Keith
> On
2019 Apr 21
0
R-devel (rev 76409) fails 'make check': non-generic function 'isSymmetric' given to findMethods()
On 21/04/2019 4:56 p.m., Benjamin Tyner wrote:
> Hello,
>
> Most likely I'm doing something wrong, but am at a loss as to what the
> issue is. I have a clean checkout of trunk here: >
> ?? ~/svn/r-devel/R$ svn info
> ?? Path: .
> ?? Working Copy Root Path: /home/btyner/svn/r-devel/R
> ?? URL: https://svn.r-project.org/R/trunk
> ?? Relative URL: ^/trunk
2019 Dec 06
0
Error in close.connection(p) : ignoring SIGPIPE signal
Hi Benjamin,
you cannot pipe to echo, since it does not read from stdin.
echo just echos is first arg, i.e. echo /dev/stdin > /dev/null will echo the string "/dev/stdin"to /dev/stdout, which is redirected to /dev/null.
Try
p <- pipe("cat > /dev/null", open = "w")
instead.
Regards,
Andreas
2019-12-06 02:46 GMT+01:00 Benjamin Tyner<btyner at
2019 Dec 06
1
Error in close.connection(p) : ignoring SIGPIPE signal
Andreas,
How right you are! Still, I find it curious that in the context of the
while(TRUE) loop, I am allowed to do this 653 times, with failure on the
654th attempt. Perhaps there is something asynchronous going on? If I
eliminate the looping, it does indeed fail (as expected) on the first
attempt to close the pipe.
Regards
Ben
On 12/6/19 2:04 AM, Andreas Kersting wrote:
> Hi
2018 Jan 10
0
OpenBLAS in everyday R?
Check if libopenblas is linked against libomp or libgomp.
I?d be curious to see any errors that arise when an OpenMP version of OpenBLAS is linked with R.
Keith
> On Jan 9, 2018, at 11:01 PM, Benjamin Tyner <btyner at gmail.com> wrote:
>
> I didn't do the compile; is there a way to check whether that was used? If not, I'll inquire with our sysadmin and report back.
2020 Mar 27
1
object.size vs lobstr::obj_size
On 3/27/20 15:19, Hadley Wickham wrote:
>
>
> On Fri, Mar 27, 2020 at 4:01 PM Herv? Pag?s <hpages at fredhutch.org
> <mailto:hpages at fredhutch.org>> wrote:
>
>
>
> On 3/27/20 12:00, Hadley Wickham wrote:
> >
> >
> > On Fri, Mar 27, 2020 at 10:39 AM Herv? Pag?s
> <hpages at fredhutch.org <mailto:hpages at
2024 Mar 02
1
installation: while running make, unable to run pdflatex on 'NEWS.tex'
? Fri, 1 Mar 2024 10:46:53 -0500
Benjamin Tyner <btyner at gmail.com> ?????:
> my platform info:
>
> Platform: x86_64-pc-linux-gnu (64-bit)
> Running under: Ubuntu 22.04.4 LTS
Quick things first: have you installed all the build-dependencies? apt
build-dep r-base (maybe with --install-suggests? haven't tried that in
a while) should do that. In particular, the build
2020 Jan 20
0
[External] Re: rpois(9, 1e10)
R uses the C 'int' type for its integer data and that is pretty much
universally 32 bit these days. In fact R wont' compile if it is not.
That means the range for integer data is the integers in [-2^31,
+2^31).
It would be good to allow for a larger integer range for R integer
objects, and several of us are thinking about how me might get there.
But it isn't easy to get right, so
2018 Jan 11
2
OpenBLAS in everyday R?
Thanks Keith. We checked, and indeed libopenblas is not linked against
libomp nor libgomp. We suspect this is because we used conda to install
R and OpenBLAS. So I guess we should be barking up the conda tree instead?
By the way, I also noticed on my home machine (Ubuntu),
/usr/lib/libopenblas.so.0 is also not linked against those, for what
that's worth.
Regards,
Ben
On 01/10/2018 12:04
2020 Jan 19
0
rpois(9, 1e10)
Technically, lambda can always be numeric. It is the observations which
must be integral.
Would hitting everything larger than maxint or maxlonglong with floor or
round fundamentally change the distribution? Well, yes, but enough that it
would matter over process risk?
Avi
On Sun, Jan 19, 2020 at 11:20 AM Benjamin Tyner <btyner at gmail.com> wrote:
> So imagine rpois is changed, such
2018 Feb 06
0
rJava garbage collect
On 6 February 2018 at 04:34, Benjamin Tyner <btyner at gmail.com> wrote:
> Hi
>
> Does rJava offer a way to instruct the JVM to perform a garbage collection?
Do you really, really need to run the garbage collector?
Consider reading:
https://stackoverflow.com/questions/5086800/java-garbage-collection
Regards
Martin
2020 Jan 19
2
rpois(9, 1e10)
????? This issue arose for me in simulations to estimate confidence,
prediction, and tolerance intervals from glm(., family=poisson) fits
embedded in a BMA::bic.glm fit using a simulate.bic.glm function I added
to the development version of Ecfun, available at
"https://github.com/sbgraves237/Ecfun".? This is part of a vignette I'm
developing, available at
2017 Nov 02
0
Memory address of character datatype
If you were curious about the hidden details of the memory layout in R,
the best reference is the source code. In your example, you are not
getting to your string because there is one more pointer in the way, "x"
is a vector of strings, each string is represented by a pointer.
At C level, there is an API for getting an address of the value, e.g.
INTEGER(x) or CHAR(STRING_ELT(x)).
At
2020 Mar 27
0
object.size vs lobstr::obj_size
On Fri, Mar 27, 2020 at 4:01 PM Herv? Pag?s <hpages at fredhutch.org> wrote:
>
>
> On 3/27/20 12:00, Hadley Wickham wrote:
> >
> >
> > On Fri, Mar 27, 2020 at 10:39 AM Herv? Pag?s <hpages at fredhutch.org
> > <mailto:hpages at fredhutch.org>> wrote:
> >
> > Hi Tomas,
> >
> > On 3/27/20 07:01, Tomas Kalibera wrote:
2020 Jan 20
0
[External] Re: rpois(9, 1e10)
>>>>> Spencer Graves
>>>>> on Sun, 19 Jan 2020 21:35:04 -0600 writes:
> Thanks to Luke and Avi for their comments.? I wrapped "round" around the
> call to "rnorm" inside my "rpois.".? For "lambda" really big, that
> "round" won't do anything.? However, it appears to give integers in
2014 Aug 08
1
could not find function "anyNA" when building tools package in R 3.1.1
Hello,
When building R from source, during the part where the 'tools' package
is built, I get:
make[6]: Entering directory `/home/btyner/R-3.1.1/src/library/tools/src'
make[6]: Leaving directory `/home/btyner/R-3.1.1/src/library/tools/src'
make[5]: Leaving directory `/home/btyner/R-3.1.1/src/library/tools/src'
make[4]: Leaving directory