Re: [R] I'd like to request that my R CRAN package is not tested on Solaris OS

2021-10-22 Thread Bill Dunlap
gctorture(TRUE) helps too, but it will take a long time. -Bill On Fri, Oct 22, 2021 at 11:07 AM lampros mouselimis < mouselimislamp...@gmail.com> wrote: > Thank you all for your answers, > > I'll give it a try using both valgrind (on linux) and the rhub's linux gcc > Address Sanitizers (Asan). I

Re: [R] I'd like to request that my R CRAN package is not tested on Solaris OS

2021-10-22 Thread lampros mouselimis
Thank you all for your answers, I'll give it a try using both valgrind (on linux) and the rhub's linux gcc Address Sanitizers (Asan). I've already used rhub to test the package on the Solaris OS but it didn't give any error (it seems to me that the configurations between CRAN and rhub differ). La

Re: [R] I'd like to request that my R CRAN package is not tested on Solaris OS

2021-10-22 Thread Henrik Bengtsson
I agree with others that this suggests there is a hidden bug in the code. In addition to running with Valgrind, R-hub's > rhub::check(platform="linux-x86_64-rocker-gcc-san") will compile the native code with the Address Sanitizer (ASan) and the UndefinedBehaviorSanitizer (UBSan). Those have hel

[R] machine learning to define contours in R

2021-10-22 Thread Luigi Marongiu
Hello, I have run some support vector machine analysis. If I draw a grid of 10*10 points in a space, the model I built will assign the points to a given group. Lets' say: ``` results1 = data.frame(row_1 = c(0, 0, 0, 0, 0, 0, 0, 0, 0, 0), row_2 = c(0, 0, 0, 1, 0, 0

Re: [R] I'd like to request that my R CRAN package is not tested on Solaris OS

2021-10-22 Thread Bill Dunlap
I agree with Stefan. Try using valgrind (on Linux) to check for memory misuse: R --debugger=valgrind --debugger-args="--leak-check=full --track-origins=yes" ... > yourTests() > q("no") -Bill On Fri, Oct 22, 2021 at 7:30 AM Stefan Evert wrote: > Just to add my personal cent to this: I've had

Re: [R] I'd like to request that my R CRAN package is not tested on Solaris OS

2021-10-22 Thread Stefan Evert
Just to add my personal cent to this: I've had similar issues with an R package some time ago, which kept crashing somewhat unpredictably in the Solaris tests. Debugging was hard because it only happened on Solaris, but in the end it turned out to be due to serious bugs in the code that only h

Re: [R] Wild cards for dataframes

2021-10-22 Thread Bert Gunter
A terse but useful resource is to use R's Help docs: ?regex. It also gives the R regex syntax, which can of course differ from others, especially in regard to escapes. Do note that the rseek.org site is a better place to ask for such info than here. Or just searching on "regular expressions R". Be

Re: [R] I'd like to request that my R CRAN package is not tested on Solaris OS

2021-10-22 Thread Marc Schwartz via R-help
Hi, Just to add some additional comments that may be helpful. 1. The CRAN repository policy here: https://cran.r-project.org/web/packages/policies.html notes: "Package authors should make all reasonable efforts to provide cross-platform portable code. Packages will not normally be accepted

Re: [R] Wild cards for dataframes

2021-10-22 Thread Grzegorz Smoliński
Well, Wikipedia is probably the place where people who know some topic can check if people who wrote the article did it right :) You can try this short subchapter in R for Data Science (by Hadley Wickham) as a starting point: https://r4ds.had.co.nz/strings.html#matching-patterns-with-regular-expr

Re: [R] I'd like to request that my R CRAN package is not tested on Solaris OS

2021-10-22 Thread Eric Berger
Hi Lampros, I cannot answer your question but I believe the correct place to post such a question would be the r-package-devel list https://stat.ethz.ch/mailman/listinfo/r-package-devel Good luck On Fri, Oct 22, 2021 at 2:13 PM lampros mouselimis wrote: > > Dear R-help team, > > I'm the mainta

Re: [R] Wild cards for dataframes

2021-10-22 Thread Eric Berger
You can check out Wikipedia for regular expressions: https://en.wikipedia.org/wiki/Regular_expression On Fri, Oct 22, 2021 at 3:48 PM Steven Yen wrote: > Thanks, it works! > > What can I read to understand more about this part "\\..*$" of the > pattern? And more such as ^ and $ that I know f

Re: [R] Wild cards for dataframes

2021-10-22 Thread Steven Yen
Thanks, it works! What can I read to understand more about this part "\\..*$" of the pattern? And more such as ^ and $ that I know from experience? On 2021/10/22 下午 06:22, Rui Barradas wrote: Hello, Use ls() with argument pattern. It accepts a regex and returns a vector of objects names mat

[R] [R-pkgs] monobin: new version 0.2.0

2021-10-22 Thread Andrija Djurovic
Dear R users, the new version of monobin package is now on CRAN. Additional binning algorithm is implemented - monotonic binning driven by decision tree (mdt.bin). For details and examples, install the new version of the monobin (install.packages("monobin")) and check the help page of the functio

[R] I'd like to request that my R CRAN package is not tested on Solaris OS

2021-10-22 Thread lampros mouselimis
Dear R-help team, I'm the maintainer of the textTinyR package. Currently the package fails on the Solaris Operating System (OS), you can see the results in the following weblink: https://cran.r-project.org/web/checks/check_results_textTinyR.html All my packages are tested on Solaris OS automatica

Re: [R] Wild cards for dataframes

2021-10-22 Thread Rui Barradas
Hello, Use ls() with argument pattern. It accepts a regex and returns a vector of objects names matching the pattern. rm(list = ls(pattern = "data\\..*$")) Hope this helps, Rui Barradas Às 10:20 de 22/10/21, Steven Yen escreveu: I like to be able to use a command with something similar to

[R] Wild cards for dataframes

2021-10-22 Thread Steven Yen
I like to be able to use a command with something similar to a "wild card". Below, lines 4 works to delete all three dataframes, but line 5 does not work. Any elegant way to accomplish this? My list of dataframes can be long and so this would be convenient. data.1<-data.frame(x=1:3,y=4:6,z=7:9