search for: gorecki

Displaying 20 results from an estimated 89 matches for "gorecki".

2022 Oct 29
1
tools:: extracting pkg dependencies from DCF
...packages(priority="high")[,"Package"]))' 3 liner, 310 chars long command, far from ideal, but does work. Best, Jan On Fri, Oct 28, 2022 at 10:42 PM Gabriel Becker <gabembecker at gmail.com> wrote: > > Hi Jan, > > > On Fri, Oct 28, 2022 at 1:57 PM Jan Gorecki <j.gorecki at wit.edu.pl> wrote: >> >> Gabriel, >> >> It is the most basic CI use case. One wants to install only >> dependencies only of the package, and run R CMD check on the package. > > > Really what you're looking for though, is to install all...
2020 Mar 30
1
is.vector could handle AsIs class better
...iel Becker <gabembecker at gmail.com> wrote: > > Jan, > > I believe it's because it has "a non-NULL attribute other than names" as per the documentation. In this case its class of "AsIs". > > Best, > ~G > > On Sun, Mar 29, 2020 at 6:29 AM Jan Gorecki <j.gorecki at wit.edu.pl> wrote: >> >> Dear R-devel, >> >> AsIs class seems to be well handled by `typeof` and `mode` function. >> Those two functions are being referred when explaining `is.vector` >> behaviour in manual. Yet `is.vector` does not seem to be...
2020 Jun 29
2
R-devel internal errors during check produce?
>>>>> Jan Gorecki writes: > So the unique.default is from the R tools package during checks. > I don't see those issues on CRAN checks. I cannot reproduce this locally (and have no clues about docker). Perhaps you can try to debug this on your end? And see what env_list is when the error occurs? Best -...
2019 Nov 01
4
[External] R C api for 'inherits' S3 and S4 objects
...That is why I don't use Rf_inherits but INHERITS which does not allocate, provided in the email body. I cannot do similarly for S4 classes, thus asking for some API for that. On Fri, Nov 1, 2019 at 5:56 PM Tierney, Luke <luke-tierney at uiowa.edu> wrote: > > On Fri, 1 Nov 2019, Jan Gorecki wrote: > > > Dear R developers, > > > > Motivated by discussion about checking inheritance of S3 and S4 > > objects (in head matrix/array topic) I would light to shed some light > > on a minor gap about that matter in R C API. > > Currently we are able to chec...
2020 Mar 29
2
is.vector could handle AsIs class better
...ctor` behaviour in manual. Yet `is.vector` does not seem to be handling AsIs class the same way. is.vector(1L) #[1] TRUE is.vector(I(1L)) #[1] FALSE Is there any reason behind this behaviour? Could we have it supported so AsIs class is ignored when `is.vector` is doing its job? Best Regards, Jan Gorecki
2016 Jun 16
3
new function to tools/utils package: dependencies based on DESCRIPTION file
...ear Jan, > > It is unavoidable to have OS and R dependencies for devtools. The building > process for packages is both OS and R dependent, so devtools has to be too > according to my understanding. > > Cheers > Joris > > On 14 Jun 2016 18:56, "Jan G?recki" <J.Gorecki at wit.edu.pl> wrote: > > Hi Thierry, > > I'm perfectly aware of it. Any idea when devtools would be shipped as > a base R package, or at least recommended package? To actually answer > the problem described in my email. > I have range of useful functions available tools...
2016 Nov 03
2
Running package tests and not stop on first fail
Hi Martin, Jan, On 11/03/2016 03:45 AM, Martin Maechler wrote: >>>>>> Jan Gorecki <J.Gorecki at wit.edu.pl> >>>>>> on Tue, 1 Nov 2016 22:51:28 +0000 writes: > > > Hello community/devs, Is there an option to run package > > tests during R CMD check and not stop on first error? I > > know that testing frameworks (testhat...
2016 Nov 17
1
new function to tools/utils package: dependencies based on DESCRIPTION file
...wrence.michael at gene.com> wrote: > I agree that the utils package needs some improvements related to > this, and hope to make them eventually. This type of feedback is very > helpful. > > Thanks, > Michael > > > > On Thu, Jun 16, 2016 at 1:42 AM, Jan G?recki <J.Gorecki at wit.edu.pl> wrote: >> Dear Joris, >> >> So it does looks like the proposed function makes a lot sense then, isn't it? >> >> Cheers, >> Jan >> >> On 16 June 2016 at 08:37, Joris Meys <jorismeys at gmail.com> wrote: >>> Dear Jan...
2020 Jun 29
2
R-devel internal errors during check produce?
...e:methods") ) unique(env_list) Best regards, Jan On Mon, Jun 29, 2020 at 5:42 PM Martin Maechler <maechler at stat.math.ethz.ch> wrote: > > >>>>> Kurt Hornik > >>>>> on Mon, 29 Jun 2020 16:13:03 +0200 writes: > > >>>>> Jan Gorecki writes: > >> So the unique.default is from the R tools package during > >> checks. I don't see those issues on CRAN checks. > > > I cannot reproduce this locally (and have no clues about > > docker). Perhaps you can try to debug this on your en...
2020 Jun 26
2
R-devel internal errors during check produce?
...-> unique.default I don't think if it is related but I build R-devel with extra args: --with-recommended-packages --enable-strict-barrier --disable-long-double I check with: --as-cran --no-manual To reproduce download current data.table from CRAN (1.12.8) and run R check Best regards, Jan Gorecki
2019 Dec 18
2
head/tail breaking change
...like this or there are plans to mitigate this breaking change? # R-devel 2019-12-17 r77592 ar = array(1:27, c(3,3,3)) tail(ar, 1) #, , 1 # # [,1] [,2] [,3] #[3,] 3 6 9 # #, , 2 # # [,1] [,2] [,3] #[3,] 12 15 18 # #, , 3 # # [,1] [,2] [,3] #[3,] 21 24 27 Best, Jan Gorecki
2019 Dec 19
1
head/tail breaking change
...gt; it already behaves this way for data.frames and for matrices, which are now > explicitly array objects with 2 dimensions as well as classed as matrices, > so its more consistent now, and more reasonable for the object). > > Best, > ~G > > On Wed, Dec 18, 2019 at 2:44 AM Jan Gorecki <j.gorecki at wit.edu.pl> wrote: > >> Hi R-devel community, >> >> I am aware of changes in R-devel in head/tail methods but I was not >> expecting that to be a breaking change. >> >> # R 3.6.1 >> ar = array(1:27, c(3,3,3)) >> tail(ar, 1) >...
2016 Jun 14
5
new function to tools/utils package: dependencies based on DESCRIPTION file
...lows to easily install all package dependencies just based on DESCRIPTION file, so simplify that in custom CI workflows to: if (length(pkgs<-package.dependencies.dcf(which="all"))) install.packages(pkgs) And would not require to install custom packages or shell scripts. Regards, Jan Gorecki
2016 Nov 01
2
Running package tests and not stop on first fail
...that testing frameworks (testhat and others) can do that but asking about just R and base packages. Currently when package check runs test scripts in ./tests directory it will stop after first fail. Do you think it could be optionally available to continue to run tests after failures? Regards, Jan Gorecki [[alternative HTML version deleted]]
2019 Nov 01
3
R C api for 'inherits' S3 and S4 objects
...itance for S3 class objects from C in a robust way (no allocation, thread safe). This is unfortunately not possible for S4 classes. I would kindly request new function in R C api so it can be achieved for S4 classes with no risk of allocation. For reference mentioned functions below. Thank you. Jan Gorecki // S3 inheritance bool INHERITS(SEXP x, SEXP char_) { SEXP klass; if (isString(klass = getAttrib(x, R_ClassSymbol))) { for (int i=0; i<LENGTH(klass); i++) { if (STRING_ELT(klass, i) == char_) return true; } } return false; } // S4 inheritance bool Rinherits(SEXP x, SEXP ch...
2016 Nov 04
4
Running package tests and not stop on first fail
>>>>> Jan Gorecki <J.Gorecki at wit.edu.pl> >>>>> on Fri, 4 Nov 2016 11:20:37 +0000 writes: > Martin, I submitted very simple patch on > https://bugs.r-project.org/bugzilla/show_bug.cgi?id=17176 > Herve, While I like your idea, I prefer to keep my patch > simple...
2020 Nov 21
4
.Internal(quit(...)): system call failed: Cannot allocate memory
...nnot allocate memory Is there any way to avoid this kind of warnings? I am using stderr output for detecting failures in scripts and this warning is a false positive of a failure. Maybe quit function could wait little bit longer trying to allocate before it raises this warning? Best regards, Jan Gorecki
2020 Jun 30
4
R-devel internal errors during check produce?
>>>>> Kurt Hornik >>>>> on Tue, 30 Jun 2020 06:20:57 +0200 writes: >>>>> Jan Gorecki writes: >> Thank you both, You are absolutely correct that example >> should be minimal, so here it is. >> l = list(a=new.env(), b=new.env()) unique(l) >> Just for completeness, env_list during check that raises >> error >> env_list &lt...
2019 Sep 15
2
[External] REprintf could be caught by tryCatch(message)
...C API "message" that would equivalent to R "message" function? Similarly as we now have C "warning" and C "error" functions. Best, Jan On Sun, Sep 15, 2019 at 5:25 PM Tierney, Luke <luke-tierney at uiowa.edu> wrote: > > On Sun, 15 Sep 2019, Jan Gorecki wrote: > > > Dear R-devel community, > > > > There appears to be an inconsistency in R C API about the exceptions > > that can be raised from C code. > > Mapping of R C funs to corresponding R functions is as follows. > > > > error -> stop > &gt...
2020 May 17
2
order function called on a data.frame?
...er main input arguments are defined as: a sequence of numeric, complex, character or logical vectors, all of the same length, or a classed R object When passing a list or a data.frame, the resuts seems to be a bit useless. Shouldn't that raise an error, or at least warning? Best Regards, Jan Gorecki