search for: krivitsky

Displaying 20 results from an estimated 26 matches for "krivitsky".

2013 Mar 09
2
Submitting packages with weak circular dependencies to CRAN.
...e A uses package B to test the API in question. Thus, package B Depends on, and Enhances, A, and A Suggests B. Could I get some guidance on submitting them to CRAN? A cannot be checked without B, but B cannot be installed without A. Thanks in advance, Pavel Krivitsky
2023 Mar 07
1
Augment base::replace(x, list, value) to allow list= to be a predicate?
This could be extended to sub and gsub as well which gsubfn in the gusbfn package already does: library(gsubfn) gsubfn("^..", toupper, c("abc", "xyz")) ## [1] "ABc" "XYz" On Fri, Mar 3, 2023 at 7:22?PM Pavel Krivitsky <p.krivitsky at unsw.edu.au> wrote: > > Dear All, > > Currently, list= in base::replace(x, list, value) has to be an index > vector. For me, at least, the most common use case is for list= to be > some simple property of elements of x, e.g., > > x <- c(1,2,NA,3) &gt...
2012 May 04
4
[patch] Behavior of .C() and .Fortran() when given double(0) or integer(0).
...o). The patch appears to work, at least for my package, and R CMD check passes for all recommended packages (on my 64-bit Linux system), but this is my first time working with R's internals, so handle with care. Best, Pavel Krivitsky -------------- next part -------------- R version 2.15.0 (2012-03-30) Platform: x86_64-pc-linux-gnu (64-bit) locale: [1] LC_CTYPE=en_US.UTF-8 LC_NUMERIC=C [3] LC_TIME=en_US.UTF-8 LC_COLLATE=en_US.UTF-8 [5] LC_MONETARY=en_US.UTF-8 LC_MESSAGES=en_US.UTF-8 [7...
2023 Mar 08
1
Augment base::replace(x, list, value) to allow list= to be a predicate?
...This could be extended to sub and gsub as well which gsubfn in the > gusbfn package already does: > > library(gsubfn) > gsubfn("^..", toupper, c("abc", "xyz")) > ## [1] "ABc" "XYz" > > On Fri, Mar 3, 2023 at 7:22?PM Pavel Krivitsky <p.krivitsky at unsw.edu.au> wrote: > > > > Dear All, > > > > Currently, list= in base::replace(x, list, value) has to be an index > > vector. For me, at least, the most common use case is for list= to be > > some simple property of elements of x, e.g., &gt...
2019 May 19
2
[R-pkg-devel] Three-argument S3method declaration does not seem to affect dispatching from inside the package.
On Sat, 18 May 2019 at 23:34, Pavel Krivitsky <pavel at uow.edu.au> wrote: > > > The issue here is that you are registering a non-standard name > > (.gen.formula) for that generic and then defining what would be the > > standard name (gen.formula) for... what purpose? IMHO, this is a bad > > practice and should...
2019 May 14
2
[R-pkg-devel] Three-argument S3method declaration does not seem to affect dispatching from inside the package.
CCing r-devel. On Tue, 14 May 2019 at 02:11, Pavel Krivitsky <pavel at uow.edu.au> wrote: > > Dear All, > > I've run into this while updating a package with unfortunately named > legacy functions. It seems like something that might be worth changing > in R, and I want to get a sense of whether this is a problem before > submitt...
2019 May 14
2
[R-pkg-devel] Three-argument S3method declaration does not seem to affect dispatching from inside the package.
On Tue, 14 May 2019 at 12:31, Pavel Krivitsky <pavel at uow.edu.au> wrote: > > > Note that disabling name-based dispatch implies two things: 1) the > > inability to override your method by defining gen.formula in the > > global environment, and 2) another package can break yours (i.e., > > internal calls to gen...
2019 May 03
1
Strange error messages from parallel::mcparallel family under 3.6.0
...t(forkTimeout({ Sys.sleep(1) ... So, these messages do not appear to prevent the child process from returning valid output, but I've never seen them before R 3.6.0, so I wonder if I am doing something wrong. Session info is also attached. Thanks in advance, Pavel -- Pavel Krivitsky Lecturer in Statistics National Institute of Applied Statistics Research Australia (NIASRA) School of Mathematics and Applied Statistics | Building 39C Room 154 University of Wollongong NSW 2522 Australia T +61 2 4221 3713 Web (NIASRA): http://niasra.uow.edu.au/index.html Web (Personal): http://www...
2023 Mar 04
3
Augment base::replace(x, list, value) to allow list= to be a predicate?
Dear All, Currently, list= in base::replace(x, list, value) has to be an index vector. For me, at least, the most common use case is for list= to be some simple property of elements of x, e.g., x <- c(1,2,NA,3) replace(x, is.na(x), 0) Particularly when using R pipes, which don't allow multiple substitutions, it would simplify many of such cases if list= could be a function that returns
2005 Feb 26
1
Profiling C functions called from R.
...set than without, so I am guessing that profiling is taking place. However, gmon.out is not generated (or at least I can't find it anywhere on the filesystem). Has anyone been able to profile shared libraries built for R in Linux? Thank you in advance, Pavel Krivitsky
2019 May 19
0
[R-pkg-devel] Three-argument S3method declaration does not seem to affect dispatching from inside the package.
...ould change R's behaviour would be when a package/namespace contains a function foo.bar() AND a NAMESPACE containing S3method(foo,bar,not.foo.bar) AND calls foo() on objects of type bar from inside the package. It is extremely unlikely to break any existing code. Best, Pavel -- Pavel Krivitsky Lecturer in Statistics National Institute of Applied Statistics Research Australia (NIASRA) School of Mathematics and Applied Statistics | Building 39C Room 154 University of Wollongong NSW 2522 Australia T +61 2 4221 3713 Web (NIASRA): http://niasra.uow.edu.au/index.html Web (Personal): http://www...
2007 Feb 27
1
Checking for user interrupt in a .C() call without without triggering a non-local exit.
...stion is, can I somehow detect a user interrupt and handle it gracefully in my own code? A similar question was posed a few months ago ( http://tolstoy.newcastle.edu.au/R/devel/06/08/6415.html ), but didn't get any response. Has anything changed since? Thanks, Pavel Krivitsky
2019 May 14
0
[R-pkg-devel] Three-argument S3method declaration does not seem to affect dispatching from inside the package.
...ly named functions exported by other loaded packages' NAMESPACEs. For a call from outside a package, the precedence is the same, but 1 and 2 are not relevant. As far as I can tell, this is the current behaviour except for the relative ordering of 1 and 2. Best, Pavel -- Pavel Krivitsky Lecturer in Statistics National Institute of Applied Statistics Research Australia (NIASRA) School of Mathematics and Applied Statistics | Building 39C Room 154 University of Wollongong NSW 2522 Australia T +61 2 4221 3713 Web (NIASRA): http://niasra.uow.edu.au/index.html Web (Personal): http://www...
2019 May 18
0
[R-pkg-devel] Three-argument S3method declaration does not seem to affect dispatching from inside the package.
...which the > generic is defined". Can you be more specific where the sequence above contradicts the current implementation (except for swapping 1 and 2)? As far as I can tell, it's just a more concrete description of what's in the documentation. Best Regards, Pavel -- Pavel Krivitsky Lecturer in Statistics National Institute of Applied Statistics Research Australia (NIASRA) School of Mathematics and Applied Statistics | Building 39C Room 154 University of Wollongong NSW 2522 Australia T +61 2 4221 3713 Web (NIASRA): http://niasra.uow.edu.au/index.html Web (Personal): http://www...
2017 Jul 06
4
Regarding R_LIBS_USER
...rn, takes precedence over the dpkg- installed library). This means that .libPaths() should have the user library (if it exists) in first position, not as a fallback. So, overall, I think the change does more harm than good. Am I missing anything? Best Regards, Pavel -- Pavel Krivitsky Lecturer in Statistics National Institute of Applied Statistics Research Australia (NIASRA) School of Mathematics and Applied Statistics | Building 39C Room 154 University of Wollongong NSW 2522 Australia T +61 2 4221 3713 Web (NIASRA): http://niasra.uow.edu.au/index.html Web (Personal): http://www...
2019 May 17
5
Give update.formula() an option not to simplify or reorder the result -- request for comments
...second line of the implementation of update.formula() ("out <- formula(terms.formula(tmp, simplify = TRUE))"). Any thoughts? One particular question that Martin raised is whether the UI should be just a single logical argument, or something else. Best Regards, Pavel -- Pavel Krivitsky Lecturer in Statistics National Institute of Applied Statistics Research Australia (NIASRA) School of Mathematics and Applied Statistics | Building 39C Room 154 University of Wollongong NSW 2522 Australia T +61 2 4221 3713 Web (NIASRA): http://niasra.uow.edu.au/index.html Web (Personal): http://www...
2023 Mar 06
1
Augment base::replace(x, list, value) to allow list= to be a predicate?
Le 04/03/2023 ? 01:21, Pavel Krivitsky a ?crit?: > Dear All, > > Currently, list= in base::replace(x, list, value) has to be an index > vector. For me, at least, the most common use case is for list= to be > some simple property of elements of x, e.g., > > x <- c(1,2,NA,3) > replace(x, is.na(x), 0) > > P...
2019 Jul 05
0
R 3.6.1 is released
...data.frame() treats 1D arrays the same as vectors, PR#17570. * Improvements in smoothEnds(x, *) working with NAs (towards runmed() working in that case, in the next version of R). * vcov(glm(<quasi>), dispersion = *) works correctly again, fixing PR#17571 thanks to Pavel Krivitsky. * R CMD INSTALL of binary packages on Windows now works also with per-directory locking. * R CMD INSTALL and install.packages() on Windows are now more robust against a locked file in an earlier installation of the package to be installed. The default value of option...
2019 Jul 05
0
R 3.6.1 is released
...data.frame() treats 1D arrays the same as vectors, PR#17570. * Improvements in smoothEnds(x, *) working with NAs (towards runmed() working in that case, in the next version of R). * vcov(glm(<quasi>), dispersion = *) works correctly again, fixing PR#17571 thanks to Pavel Krivitsky. * R CMD INSTALL of binary packages on Windows now works also with per-directory locking. * R CMD INSTALL and install.packages() on Windows are now more robust against a locked file in an earlier installation of the package to be installed. The default value of option...
2019 Jul 05
0
R 3.6.1 is released
...data.frame() treats 1D arrays the same as vectors, PR#17570. * Improvements in smoothEnds(x, *) working with NAs (towards runmed() working in that case, in the next version of R). * vcov(glm(<quasi>), dispersion = *) works correctly again, fixing PR#17571 thanks to Pavel Krivitsky. * R CMD INSTALL of binary packages on Windows now works also with per-directory locking. * R CMD INSTALL and install.packages() on Windows are now more robust against a locked file in an earlier installation of the package to be installed. The default value of option...