search for: emailbox

Displaying 20 results from an estimated 33 matches for "emailbox".

Did you mean: mailbox
2019 Oct 11
2
New matrix function
...t you mention, contain functions that should probably be replaced by functions with better implementation from packages on CRAN. Best regards Morgan On Fri, 11 Oct 2019 15:22 Joris Meys, <jorismeys at gmail.com> wrote: > > > On Fri, Oct 11, 2019 at 3:55 PM Morgan Morgan <morgan.emailbox at gmail.com> > wrote: > >> How do you prove usefulness of a feature? >> Do you have an example of a feature that has been added after proving to >> be >> useful in the package space first? >> >> Thank you, >> Morgan >> > > The parallel...
2019 Oct 11
4
New matrix function
...s interesting suggestion, Morgan. While there is no strict > criteria for base R inclusion, one criterion relevant in this case is that > the usefulness of a feature be proven in the package space first. > > Michael > > > On Fri, Oct 11, 2019 at 5:19 AM Morgan Morgan <morgan.emailbox at gmail.com> > wrote: > >> On Fri, 11 Oct 2019 10:45 Duncan Murdoch, <murdoch.duncan at gmail.com> >> wrote: >> >> > On 11/10/2019 6:44 a.m., Morgan Morgan wrote: >> > > Hi All, >> > > >> > > I was looking for a function...
2005 Feb 21
3
apple mail, and mails marked as deleted
hi, is this a feature or a bug in conjunction with apple mail. i usually use the feature in imap to not delete the emails, but only mark them as deleted, which is a very usefull feature if you use a emailbox with more people accessing it. Im now trying an SME server installation with dovecot 0.99.10, and when i delete a message, it gets marked as deletet, but as soon as i change the mailbox the mail gets also expunged from it. is this a bug fixed in the newer dovecot releases ? or is this a featur...
2020 Jun 30
3
Build a R call at C level
...R(e), r_true); > SET_TAG(CDDR(e), install(\"na.rm\")); > Rf_PrintValue(e); > SEXP ans = PROTECT(eval(e, R_GlobalEnv)); > UNPROTECT(3); > return ans; > > ") > > call_to_sum(c(1L,NA,3L)) > > On Tue, Jun 30, 2020 at 10:08 AM Morgan Morgan > <morgan.emailbox at gmail.com> wrote: >> Hi All, >> >> I was reading the R extension manual section 5.11 ( Evaluating R expression >> from C) and I tried to build a simple call to the sum function. Please see >> below. >> >> call_to_sum <- inline::cfunction( >>...
2020 May 20
2
Precision of function mean,bug?
...point precision error. Best, Brodie. [1] https://github.com/wch/r-source/blob/tags/R-4-0-0/src/main/summary.c#L482 > > a2=(z[idx]+x[idx]+y[idx])/3 > > a2==a > [1] FALSE > > a2==b > [1] TRUE > > -pd > > > On 20 May 2020, at 12:40 , Morgan Morgan <morgan.emailbox at gmail.com> wrote: > > > > Hello R-dev, > > > > Yesterday, while I was testing the newly implemented function pmean in > > package kit, I noticed a mismatch in the output of the below R expressions. > > > > set.seed(123) > > n=1e3L > > idx=...
2019 Mar 04
2
Package inclusion in R core implementation
...ather than any technical need to be in the core > distribution. Having them as a core (or recommended) package makes them > harder update independently to R and makes testing, development and > contribution more cumbersome. > > On Fri, Mar 1, 2019 at 4:35 AM Morgan Morgan <morgan.emailbox at gmail.com> > wrote: > >> Hi, >> >> It sometimes happens that some packages get included to R like for example >> the parallel package. >> >> I was wondering if there is a process to decide whether or not to include a >> package in the core impl...
2019 Feb 28
3
Package inclusion in R core implementation
Hi, It sometimes happens that some packages get included to R like for example the parallel package. I was wondering if there is a process to decide whether or not to include a package in the core implementation of R? For example, why not include the Rcpp package, which became for a lot of user the main tool to extend R? What is our view on the (not so well known) dotCall64 package which is an
2019 Sep 27
2
Evaluate part of an expression at C level
Hi, I am wondering if the below is possible? Let's assume I have the following expression: 1:10 < 5 Is there a way at the R C API level to only evaluate the 5th element (i.e 5 < 5) instead of evaluating the whole expression and then select the 5th element in the logical vector? Thank you Best regards Morgan [[alternative HTML version deleted]]
2020 May 20
2
Precision of function mean,bug?
Hello R-dev, Yesterday, while I was testing the newly implemented function pmean in package kit, I noticed a mismatch in the output of the below R expressions. set.seed(123) n=1e3L idx=5 x=rnorm(n) y=rnorm(n) z=rnorm(n) a=(x[idx]+y[idx]+z[idx])/3 b=mean(c(x[idx],y[idx],z[idx])) a==b # [1] FALSE For idx= 1, 2, 3, 4 the last line is equal to TRUE. For 5, 6 and many others the difference is small
2019 Oct 11
3
New matrix function
On Fri, 11 Oct 2019 10:45 Duncan Murdoch, <murdoch.duncan at gmail.com> wrote: > On 11/10/2019 6:44 a.m., Morgan Morgan wrote: > > Hi All, > > > > I was looking for a function to find a small matrix inside a larger > matrix > > in R similar to the one described in the following link: > > > > >
2019 Oct 11
0
New matrix function
...or the 2012 discussion. My point is it?s really really difficult to get something in Base R. Develop it well, put it in a package, and you have basically the same result. Avi [1] https://stat.ethz.ch/pipermail/r-devel/2012-June/064351.html On Fri, Oct 11, 2019 at 9:55 AM Morgan Morgan <morgan.emailbox at gmail.com> wrote: > How do you prove usefulness of a feature? > Do you have an example of a feature that has been added after proving to be > useful in the package space first? > > Thank you, > Morgan > > On Fri, 11 Oct 2019 13:53 Michael Lawrence, <lawrence.michae...
2020 Jun 17
2
subset data.frame at C level
Hi, Hope you are well. I was wondering if there is a function at C level that is equivalent to mtcars$carb or .subset2(mtcars, "carb"). If I have the index of the column then the answer would be VECTOR_ELT(df, asInteger(idx)) but I was wondering if there is a way to do it directly from the name of the column without having to loop over columns names to find the index? Thank you Best
2020 May 21
0
Precision of function mean,bug?
...wo-pass scan over the elements too lower the impact of > addition of values with widely different values (classical problem in > numerical analysis). But I can see how it may look like that. > > Cheers, > > Henrik > > > On Thu, May 21, 2020, 03:21 Morgan Morgan <morgan.emailbox at gmail.com> > wrote: > >> Thank you Henrik for the feedback. >> Note that for idx=4 and refine = TRUE, your equality b==c is FALSE. I >> think that as Peter said == can't be trusted with FP. >> His example is good. Here is an even more shocking one. >>...
2019 Jun 14
2
R C API resize matrix
Hi, Is there a way to resize a matrix defined as follows: SEXP a = PROTECT(allocMatrix(INTSXP, 10, 2)); int *pa = INTEGER(a) To row = 5 and col = 1 or do I have to allocate a second matrix "b" with pointer *pb and do a "for" loop to transfer the value of a to b? Thank you Best regards Morgan [[alternative HTML version deleted]]
2019 Oct 11
1
New matrix function
...SE, align = "left") ) > ## [1] 4 9 > > # 2 - Base R using conversion to character > gregexpr(paste(x, collapse = ""), paste(A, collapse = ""))[[1]] > ## [1] 4 9 > ...snip ... > > On Fri, Oct 11, 2019 at 3:45 AM Morgan Morgan <morgan.emailbox at gmail.com> wrote: > > > > Hi All, > > > > I was looking for a function to find a small matrix inside a larger matrix > > in R similar to the one described in the following link: > > > > https://www.mathworks.com/matlabcentral/answers/194708-index-a-sm...
2019 Mar 04
1
Package inclusion in R core implementation
...ore > > distribution. Having them as a core (or recommended) package makes them > > harder update independently to R and makes testing, development and > > contribution more cumbersome. > > > > On Fri, Mar 1, 2019 at 4:35 AM Morgan Morgan <morgan.emailbox at gmail.com <mailto:morgan.emailbox at gmail.com>> > > wrote: > > > >> Hi, > >> > >> It sometimes happens that some packages get included to R like for example > >> the parallel package. > >> > &gt...
2020 Jun 30
2
Build a R call at C level
Hi All, I was reading the R extension manual section 5.11 ( Evaluating R expression from C) and I tried to build a simple call to the sum function. Please see below. call_to_sum <- inline::cfunction( language = "C", sig = c(x = "SEXP"), body = " SEXP e = PROTECT(lang2(install(\"sum\"), x)); SEXP ans = PROTECT(eval(e, R_GlobalEnv)); UNPROTECT(2); return
2019 Jul 11
2
Convert STRSXP or INTSXP to factor
Hi, Using the R C PAI, is there a way to convert to convert STRSXP or INTSXP to factor. The idea would be to do in C something similar to the "factor" function (example below): > letters[1:5] # [1] "a" "b" "c" "d" "e" > factor(letters[1:5]) # [1] a b c d e # Levels: a b c d e There is the function setAttrib the levels of a SXP
2019 Nov 05
1
Questions on the R C API
...in R does not use them but manage to achieve that. switch(1, "a", stop("a")) #[1] "a" It is a primitive but I don't understand how it manage to do that. Best, Morgan > Best, > Jiefei > > > On Mon, Nov 4, 2019 at 2:41 PM Morgan Morgan <morgan.emailbox at gmail.com> > wrote: > >> Hi All, >> >> I have some questions regarding the R C API. >> >> Let's assume I have a function which is defined as follows: >> >> R file: >> >> myfunc <- function(a, b, ...) .External(Cfun, a, b, ...)...
2019 Nov 04
2
Questions on the R C API
Hi All, I have some questions regarding the R C API. Let's assume I have a function which is defined as follows: R file: myfunc <- function(a, b, ...) .External(Cfun, a, b, ...) C file: SEXP Cfun(SEXP args) { args = CDR(args); SEXP a = CAR(args); args = CDR(args); SEXP b = CAR(args); args = CDR(args); /* continue to do something with remaining arguments in "..."