search for: bengtsson

Displaying 20 results from an estimated 933 matches for "bengtsson".

2010 Mar 31
1
Hyphen search with parse_query()
I'm trying to index the word "peter-bengtsson" (which is different from "peter" & "bengtsson" and is different from "peterbengtsson") and find it. To start with I'm trying to use a basic python script to get to grips with it. When I do this:: qp = xapian.QueryParser() stemmer = xapian.Stem(&q...
2010 May 20
2
reshaping data
...the observations in one column, with the species they belong to in the next. Like this: A red B red C red D green E blue F blue I have tried using reshape() and stack() but I cannot get my head around it. Any help is highly appreciated! Thanks in advance, __________________________________ Mia Bengtsson, PhD-student Department of Biology University of Bergen +47 55584715 +47 97413634 mia.bengtsson at bio.uib.no
2001 Jul 06
1
Title of bundled packages in the library index (PR#1017)
Full_Name: Henrik Bengtsson Version: 1.3.0 OS: Windows Me Submission from: (NULL) (216.175.122.171) I realized that the title of packages in the library index when they are in a bundle is the title of the bundle and not the package. It looks like the TITLE file, which apparently is used for generating the library index, t...
2015 May 09
2
R Language Definition: Subsetting matrices with negative indices is *not* an error
On Sat, May 9, 2015 at 12:55 AM, peter dalgaard <pdalgd at gmail.com> wrote: > >> On 09 May 2015, at 02:53 , Henrik Bengtsson <henrik.bengtsson at ucsf.edu> wrote: >> >> Hi, >> >> I spotted what looks like another(*) mistake in 'R Language >> Definition' on how subsetting should work. In Section 'Indexing >> matrices and arrays' >> [http://cran.r-project.org...
2016 Oct 26
3
BUG?: On Linux setTimeLimit() fails to propagate timeout error when it occurs (works on Windows)
...s://github.com/wch/r-source/blob/trunk/src/main/sysutils.c#L1692-L1736) Unfortunately, right now, I've got little extra time to troubleshoot this further. /Henrik On Wed, Oct 26, 2016 at 2:22 AM, Berend Hasselman <bhh at xs4all.nl> wrote: > >> On 26 Oct 2016, at 04:44, Henrik Bengtsson <henrik.bengtsson at gmail.com> wrote: >> ....... >> This looks like a bug to me. Can anyone on macOS confirm whether this >> is also a problem there or not? >> > > > Tried it on macOS El Capitan and got this (running in R.app with R version 3.3.2 RC (2016-10...
2016 Oct 12
2
How to assign NULL value to pairlist element while keeping it a pairlist?
Thanks, this was what I expected. There is a desire to eliminate the usage of pairlist from user code, which suggests the alternative of allowing for function arguments to be stored in lists. That's a much deeper change though. On Wed, Oct 12, 2016 at 12:31 PM, Henrik Bengtsson <henrik.bengtsson at gmail.com> wrote: > Michael, thanks for this info. > > I've stumbled upon this in a case where I walk an R expression (the > AST) and (optionally) modifies it (part of the globals package). In R > expressions, a function definition uses a pairlist to r...
2016 Dec 20
2
Request: Increasing MAX_NUM_DLLS in Rdynload.c
On Tue, Dec 20, 2016 at 7:04 AM, Henrik Bengtsson <henrik.bengtsson at gmail.com> wrote: > On reason for hitting the MAX_NUM_DLLS (= 100) limit is because some > packages don't unload their DLLs when they being unloaded themselves. I am surprised by this. Why does R not do this automatically? What is the case for keeping the DLL l...
2016 Oct 19
2
How to assign NULL value to pairlist element while keeping it a pairlist?
...ear to me how I would go about to modify this to be the equivalent of: expr <- quote(function(x = NULL) x) without having to: f <- eval(expr) formals(f) <- list(x=NULL) expr <- bquote(.(f)) /Henrik > > Martin > > > On Wed, Oct 12, 2016 at 12:31 PM, Henrik Bengtsson > > <henrik.bengtsson at gmail.com> wrote: > >> Michael, thanks for this info. > >> > >> I've stumbled upon this in a case where I walk an R expression (the > >> AST) and (optionally) modifies it (part of the globals package)....
2015 Aug 15
1
Why not pthreads on Windows in 'parallel' package?
...ote: > mclapply uses fork which is different from pthreads. As I understand it, > pthreads requires you to rewrite code, fork is a system call which takes > care of completely replicating the current state of the process. > > Kasper > > On Fri, Aug 14, 2015 at 5:00 PM, Henrik Bengtsson < > henrik.bengtsson at ucsf.edu> wrote: > >> On Windows there are a few 'pthreads' implementation, e.g. >> pthreads-w32 and winpthreads >> [ >> https://cran.r-project.org/doc/manuals/r-devel/R-exts.html#Using-pthreads >> ]. >> We're think...
2006 Mar 15
1
setMethod confusion -best reference for S4 programming
...rial-- "S4 Classes in 15 pages, more or less". Have I missed any other useful resources? Stephen Henderson Wolfson Inst. for Biomedical Research Cruciform Bldg., Gower Street University College London United Kingdom, WC1E 6BT +44 (0)207 679 6827 -----Original Message----- From: henrik.bengtsson at gmail.com [mailto:henrik.bengtsson at gmail.com] On Behalf Of Henrik Bengtsson Sent: 15 March 2006 10:59 To: Martin Maechler Cc: Stephen Henderson; r-help at stat.math.ethz.ch Subject: Re: [R] setMethod confusion On 3/15/06, Martin Maechler <maechler at stat.math.ethz.ch> wrote: > >...
2017 Dec 05
2
command line arguments are parsed differently on windows, from 3.4.3
Sorry for not reading carefully and thanks for confirming problem with Rscript too. On Dec 5, 2017 08:47, "G?bor Cs?rdi" <csardi.gabor at gmail.com> wrote: > On Tue, Dec 5, 2017 at 4:40 PM, Henrik Bengtsson > <henrik.bengtsson at gmail.com> wrote: > > One comment: > > For your R devel example you didn't use spaces in the expression, i.e. > maybe > > that's broken too with spaces? > > I did. There are two R-devel examples, one with spaces (buggy) and one >...
2016 Oct 12
2
How to assign NULL value to pairlist element while keeping it a pairlist?
...ve from using a > pairlist to the "new" (almost 20 years ago) list. In my opinion, > consistency trumps "convenience" in this case. If others agree, I'll > change it to also coerce back to pairlist. > > Michael > > On Wed, Oct 12, 2016 at 9:20 AM, Henrik Bengtsson > <henrik.bengtsson at gmail.com> wrote: >> Hi, I seem to not be able to assign NULL to an element of a pairlist >> without causing it to be coerced to a plain list. For example: >> >>> x <- pairlist(1, 2) >>> class(x) >> [1] "pairlist&quo...
2018 Mar 09
2
parallel:::newPSOCKnode(): background worker fails immediately if socket on master is not set up in time (BUG?)
...ot; else "SOCK0node") } One could set 'maxTries' and 'interval' via commandArgs() like what is done for the other arguments. I'm happy to submit an SVN patch if R core thinks this is an acceptable solution. /Henrik On Thu, Mar 8, 2018 at 7:36 PM, Henrik Bengtsson <henrik.bengtsson at gmail.com> wrote: > I just noticed that parallel:::.slaveRSOCK() passes 'timeout' to > socketConnection() as a character, i.e. there's a missing timeout <- > as.integer(timeout), cf. port <- as.integer(port) and useXDR <- > as.logical(valu...
2019 Jun 25
3
methods package: A _R_CHECK_LENGTH_1_LOGIC2_=true error
...want to reply with findings above asap due to the R 3.6.1 release and you might roll back the patch (since it might introduce other bugs as Peter mentioned). /Henrik On Mon, Jun 24, 2019 at 3:05 AM Martin Maechler <maechler at stat.math.ethz.ch> wrote: > > >>>>> Henrik Bengtsson via R-core > >>>>> on Sun, 23 Jun 2019 11:29:58 -0700 writes: > > > Thank you. > > To correct myself, I can indeed reproduce this with R --vanilla too. > > A reproducible example is: > > > $ R --vanilla > > R version 3.6....
2016 May 04
4
Is it possible to retrieve the last error? (not error *message*)
Hi, at the R prompt, is it possible to retrieve the last error (as in condition object of class "error")? I'm not asking for geterrmessage(), which only returns the error message (as a character string). I'm basically looking for a .Last.error or .Last.condition, analogously to .Last.value for values, which can be used when it is "too late" (not possible) to go back
2018 Mar 10
1
parallel:::newPSOCKnode(): background worker fails immediately if socket on master is not set up in time (BUG?)
...thing like > this but it didn't seem necessary at the time. You don't want to retry > indefinitely since the connection could be failing because the master > died, and then you want the workers to die as well. > > Best, > > luke > > > On Fri, 9 Mar 2018, Henrik Bengtsson wrote: > >> A solution is to have parallel:::.slaveRSOCK() attempt to connect >> multiple times before failing, e.g. >> >> makeSOCKmaster <- function(master, port, timeout, useXDR, maxTries >> = 10L, interval = 1.0) { >> port <- as.integer(port...
2008 Feb 11
4
R programming style
I am aware of one (unofficial) guide to style for R programming: http://www1.maths.lth.se/help/R/RCC/ from Henrik Bengtsson. Can anyone provide further pointers to good style? Views on Bengtsson's ideas would interest me as well. David Scott _________________________________________________________________ David Scott Department of Statistics, Tamaki Campus The University of Auckland, PB 92019 Auckland 1...
2016 Dec 21
2
Request: Increasing MAX_NUM_DLLS in Rdynload.c
.../Henrik > > A better approach would be to just remove the limit on the number of > DLLs, dynamically expanding the array if/when needed. > > > On Tue, Dec 20, 2016 at 3:40 AM, Jeroen Ooms <jeroen.ooms at stat.ucla.edu> wrote: >> On Tue, Dec 20, 2016 at 7:04 AM, Henrik Bengtsson >> <henrik.bengtsson at gmail.com> wrote: >>> On reason for hitting the MAX_NUM_DLLS (= 100) limit is because some >>> packages don't unload their DLLs when they being unloaded themselves. >> >> I am surprised by this. Why does R not do this automatical...
2016 Oct 27
2
BUG?: On Linux setTimeLimit() fails to propagate timeout error when it occurs (works on Windows)
...ed=1) > Error: reached elapsed time limit >> setTimeLimit(elapsed=1); system.time({Sys.sleep(10);message("done")}) > Error in Sys.sleep(10) : reached elapsed time limit > Timing stopped at: 0.003 0.003 0.733 > > -pd > > >> On 26 Oct 2016, at 21:54 , Henrik Bengtsson <henrik.bengtsson at gmail.com> wrote: >> >> Thank you for the feedback and confirmations. Interesting to see that >> it's also reproducible on macOS expect for Spencer; that might >> indicate a difference in builds. >> >> BTW, my original post suggest...
2018 Jan 25
2
sum() returns NA on a long *logical* vector when nb of TRUE values exceeds 2^31
..., so the memory overhead is zero: > profmem::profmem(y <- matrixStats::sum2(x, mode = "double")) Rprofmem memory profiling of: y <- matrixStats::sum2(x, mode = "double") Memory allocations: bytes calls total 0 /Henrik On Fri, Jun 2, 2017 at 1:58 PM, Henrik Bengtsson <henrik.bengtsson at gmail.com> wrote: > I second this feature request (it's understandable that this and > possibly other parts of the code was left behind / forgotten after the > introduction of long vector). > > I think mean() avoids full copies, so in the meanwhile, you...