search for: vanderloo

Displaying 20 results from an estimated 52 matches for "vanderloo".

2016 Apr 08
2
(no) circular dependency
Thanks all, I don't know either (for the moment). It's all in the design phase still. Generally, I would also like to keep specific functions in specific packages, if at all possible. On Fri, Apr 8, 2016 at 3:03 PM, Mark van der Loo <mark.vanderloo at gmail.com> wrote: > Well, I'm not saying that Dmitri _should_ do it. I merely mention it as an > option that I think is worth thinking about -- it is easy to overlook the > obvious :-). Since we have no further info on the package's structure we > can't be sure.. >...
2017 Mar 09
0
problems with RdMacros in file DESCRIPTION
...project.org mailing list > > https://stat.ethz.ch/mailman/listinfo/r-devel > [[alternative HTML version deleted]] ------------------------------ Message: 2 Date: Fri, 8 Apr 2016 14:59:28 +0300 From: Adrian Du?a <dusa.adrian at unibuc.ro> To: Mark van der Loo <mark.vanderloo at gmail.com> Cc: r-devel <r-devel at r-project.org> Subject: Re: [Rd] (no) circular dependency Message-ID: <CAJ=0CtB83wvrWkyVy05ZXyGfAt9hiMnU+QpD=_h7E62dUe=iPg at mail.gmail.com> Content-Type: text/plain; charset="UTF-8" Hi Mark, Uhm... sometimes this is not alwa...
2018 Mar 16
2
Apparent bug in behavior of formulas with '-' operator for lm
...same levels > as factors in the original data that was used to fit the model. If you add > levels to these factors, it's impossible to use that model to predict for > these new data. > > Cheers > Joris > > On Fri, Mar 16, 2018 at 10:21 AM, Mark van der Loo < > mark.vanderloo at gmail.com> wrote: > >> Dear R-developers, >> >> In the 'lm' documentation, the '-' operator is only specified to be used >> with -1 (to remove the intercept from the model). >> >> However, the documentation also refers to the 'formula...
2014 Dec 04
1
\U with more than 4 digits returns the wrong character
Great spot, thanks Mark. This really ought to appear somewhere in the ?Quotes help page. Having a warning under Windows might be nicer behaviour than silently returning the wrong value too. On 4 December 2014 at 22:24, Mark van der Loo <mark.vanderloo at gmail.com> wrote: > Richie, > > The R language definition [1] says (10.3.1): > > \Unnnnnnnn \U{nnnnnnnn} > (where multibyte locales are supported and not on Windows, otherwise > an error). Unicode character with given hex code ? sequences of up to > eight hex digits. &...
2020 Nov 02
0
vignettes present in 2 folders or won't work
From: Duncan Murdoch <murdoch.duncan at gmail.com> To: Mark van der Loo <mark.vanderloo at gmail.com> Cc: Dirk Eddelbuettel <edd at debian.org>, r-devel <r-devel at r-project.org> Further to Duncan's comments: > It would be nice if the documents in inst/doc were linked to on the CRAN > landing page of a package. I think that documents under inst/doc are a...
2016 Apr 08
1
(no) circular dependency
...t; >> Thanks all, I don't know either (for the moment). >> It's all in the design phase still. Generally, I would also like to keep >> specific functions in specific packages, if at all possible. >> >> On Fri, Apr 8, 2016 at 3:03 PM, Mark van der Loo <mark.vanderloo at gmail.com >> wrote: >> >>> Well, I'm not saying that Dmitri _should_ do it. I merely mention it as >> an >>> option that I think is worth thinking about -- it is easy to overlook the >>> obvious :-). Since we have no further info on the package...
2017 Jun 14
2
[WISH / PATCH] possibility to split string literals across multiple lines
...you need paste() or paste0() anyway I'm not against incorporating the patch, as it would eliminate a few keystrokes. It's a neat idea, but I don't expect any other noticeable advantage from it. my humble 2 cents Cheers Joris On Wed, Jun 14, 2017 at 2:00 PM, Mark van der Loo <mark.vanderloo at gmail.com> wrote: > Having some line-breaking character for string literals would have benefits > as string literals can then be constructed parse-time rather than run-time. > I have run into this myself a few times as well. One way to at least > emulate something like that is th...
2016 Apr 08
4
(no) circular dependency
...till) looking for a solution to: - preserve the current functionalities in packages A and B (to follow Dmitri's original post) - be able to use functions from each other - yet avoid circular dependency I hope this explains it, Adrian On Thu, Apr 7, 2016 at 11:36 PM, Mark van der Loo <mark.vanderloo at gmail.com> wrote: > At the risk of stating the over-obvious: there's also the option of > creating just a single package containing all functions. None of the > functions that create the interdependencies need to be exported that way. > > Btw, his question is probably bett...
2018 Aug 31
2
compairing doubles
El vie., 31 ago. 2018 a las 16:00, Mark van der Loo (<mark.vanderloo at gmail.com>) escribi?: > > how about > > is_evenly_spaced <- function(x,...) all.equal(diff(sort(x)),...) This doesn't work, because 1. all.equal does *not* return FALSE. Use of isTRUE or identical(., TRUE) is required if you want a boolean. 2. all.equal compares two objec...
2018 Mar 16
0
Apparent bug in behavior of formulas with '-' operator for lm
...e underlying functions. Solving it would require a bypass of model.frame() to construct the correct model,matrix for the new predictions, and that's far from trivial as model.matrix() itself depends on model.frame(). Cheers Joris On Fri, Mar 16, 2018 at 1:09 PM, Mark van der Loo <mark.vanderloo at gmail.com> wrote: > Joris, the point is that 'z' is NOT used as a predictor in the model. > Therefore it should not affect predictions. Also, I find it suspicious that > the error only occurs when the response variable conitains missings and 'z' > is unique (I hav...
2016 Apr 08
0
(no) circular dependency
...t gmail.com > wrote: > Thanks all, I don't know either (for the moment). > It's all in the design phase still. Generally, I would also like to keep > specific functions in specific packages, if at all possible. > > On Fri, Apr 8, 2016 at 3:03 PM, Mark van der Loo <mark.vanderloo at gmail.com > > > wrote: > > > Well, I'm not saying that Dmitri _should_ do it. I merely mention it as > an > > option that I think is worth thinking about -- it is easy to overlook the > > obvious :-). Since we have no further info on the package's structu...
2015 Nov 26
2
Inconsistency in treating NaN-results?
This question is more out of curiosity than a complaint or suggestion, but I'm just wondering. The behavior of R on calculations that result in NaN seems a bit inconsistent. # this is expected: > 0/0 [1] NaN # but this gives a warning > sin(Inf) [1] NaN Warning message: In sin(Inf) : NaNs produced # and this again does not > exp(NaN) [1] NaN Conceptually, I like to think that R
2018 Mar 16
2
Apparent bug in behavior of formulas with '-' operator for lm
Dear R-developers, In the 'lm' documentation, the '-' operator is only specified to be used with -1 (to remove the intercept from the model). However, the documentation also refers to the 'formula' help file, which indicates that it is possible to subtract any term. Indeed, the following works with no problems (the period '.' stands for 'all terms except the
2015 Nov 30
1
Inconsistency in treating NaN-results?
...ings can > always be turned off and/or ignored. > > The only real exception that you show is 0/0 is does not start with > NaN, but produces NaN. But infix operator functions tend to behave a > bit differently. > > On Thu, Nov 26, 2015 at 2:07 AM, Mark van der Loo > <mark.vanderloo at gmail.com> wrote: >> This question is more out of curiosity than a complaint or suggestion, but >> I'm just wondering. >> >> The behavior of R on calculations that result in NaN seems a bit >> inconsistent. >> >> # this is expected: >>> 0...
2018 May 03
7
length of `...`
Hi, In some cases the number of arguments passed as ... must be determined inside a function, without evaluating the arguments themselves. I use the following construct: dotlength <- function(...) length(substitute(expression(...))) - 1L # Usage (returns 3): dotlength(1, 4, something = undefined) How can I define a method for length() which could be called directly on `...`? Or is it an
2018 May 03
2
length of `...`
...es exactly what you are asking for. Before that, I don't know of an easy way to get the length without evaluation via R code. There may be one I'm not thinking of though, I haven't needed to do this myself. Hope that helps. ~G On Thu, May 3, 2018 at 7:52 AM, Mark van der Loo <mark.vanderloo at gmail.com> wrote: > This question is better aimed at the r-help mailinglist as it is not about > developing R itself. > > > having said that, > > I can only gues why you want to do this, but why not do something like > this: > > > f <- function(...){ >...
2015 Jun 05
1
NEWS.md support on CRAN
@Gavin: My aim was to point out that the ability to mix developer-facing documentation with user-facing documentation is not a good reason to want to support md. I agree with Duncan that links to within a package would be useful (not sure if NEWS.Rd supports this). I'm not so convinced that package authors that do not even add a plain text NEWS file will create a NEWS.md file. Adding
2015 Apr 27
1
Development version of R: Improved nchar(), nzchar() but changed API
Dear Martin, Does the work on nchar mean that bugs #16090 and #16091 will be resolved [1,2]? Thanks, Mark [1] https://bugs.r-project.org/bugzilla3/show_bug.cgi?id=16090 [2] https://bugs.r-project.org/bugzilla3/show_bug.cgi?id=16091 On Sat, Apr 25, 2015 at 11:06 PM, James Cloos <cloos at jhcloos.com> wrote: > >>>>> "GC" == G?bor Cs?rdi <csardi.gabor at
2016 May 12
0
Single-threaded aspect
...is was a limitation inherited with R objects (which XPtr is supposed to be a proxy for an R object according to Dirk's comment). If this is not the case, I could repost this on Rcpp-devel unless it could be migrated. Regards, Charles On Thu, May 12, 2016 at 8:11 AM, Mark van der Loo <mark.vanderloo at gmail.com> wrote: > Charles, > > 1. Perhaps this question is better directed at the R-help or > R-pacakge-devel mailinglist. > > 2. It basically means that R itself can only evaluate one R expression at > the time. > > The parallel package circumvents this by start...
2018 Aug 31
3
compairing doubles
Agreed that's it's rounding error, and all.equal would be the way to go. I wouldn't call it a bug, it's simply part of working with floating point numbers, any language has the same issue. And while we're at it, I think the function can be a lot shorter: .is_continous_evenly_spaced <- function(n){ length(n)>1 && isTRUE(all.equal(n[order(n)], seq(from=min(n),