Re: [R] startup loading issue

2022-10-25 Thread John Dougherty via R-help
On Tue, 25 Oct 2022 08:33:10 -0500 ken eagle wrote: > I thought I was loading a ~300M binary (bigwig) file into another > application . . . Is the other application R dependent, written in R, or call R capacities? If it doesn't, the issue might be with the "other application rather than R.

Re: [R] Sensitivity and Specificity

2022-10-25 Thread greg holly
Hi Micheal, Rui, Jin and Matthias, I appreciate your time and help. The problem has been solved with your guides. Kind regards, Greg. On Tue, Oct 25, 2022 at 12:11 AM Prof. Dr. Matthias Kohl < matthias.k...@stamats.de> wrote: > MKclass::perfMeasures(predict_testing, truth = testing$case, namePos

Re: [R] startup loading issue

2022-10-25 Thread Jeff Newmiller
My bet would be a .RData file. They extract data from shared objects in memory but do not restore that data in shared objects, so there is a risk of memory requirements exploding. If this is actually a problem specific to the Mac, you might want to ask on R-sig-mac. On October 25, 2022

Re: [R] Replace multiple subexpressions at once?

2022-10-25 Thread Bill Dunlap
There probably is a package with such a function, but you can do with one call to sub() if you parenthesize all the subexpressions in the regular expression and use \\1, etc., in the replacement for those parts you want to keep. E.g., > s <- "" > want <- "" > new_regexp <- "(.*<[^>]+

[R] Replace multiple subexpressions at once?

2022-10-25 Thread Duncan Murdoch
An R regular expression pattern can contain parenthesized subexpressions, and those can be used later in the same pattern, or in the replacement in sub() and gsub(). What I'd like to do is match several subexpressions and replace all of them. For example, I might have a string like s <-

[R] startup loading issue

2022-10-25 Thread ken eagle
I thought I was loading a ~300M binary (bigwig) file into another application, but the window changed to the R GUI without my realizing it and R tried to load the file. I’m on a Mac M1-based laptop with system 12.5.1 and 8G of ram, running R 4.2.1 (Intel version). According to ActivityMonitor,

Re: [R] [EXTERNAL] Re: unexpected 'else' in " else" (Ebert, Timothy Aaron)

2022-10-25 Thread Jorgen Harmse via R-help
Good catch! I also misread it, and I think most people would. If I wanted to write confusing documentation then I could play similar games with 'mode' and 'length'. Regards, Jorgen Harmse. > test <- c(TRUE,FALSE,FALSE) > attr(test,'class') <- 'foo' # probably a bad idea, but I want to see

Re: [R] getting to a point where packages are installed and "ready to use", without unnecessarily reinstalling packages

2022-10-25 Thread Thierry Onkelinx via R-help
Dear Kelly, Have a look at the renv package (https://CRAN.R-project.org/package=renv). Once setup, your code reduces to renv::restore() Best regards, ir. Thierry Onkelinx Statisticus / Statistician Vlaamse Overheid / Government of Flanders INSTITUUT VOOR NATUUR- EN BOSONDERZOEK / RESEARCH

[R] getting to a point where packages are installed and "ready to use", without unnecessarily reinstalling packages

2022-10-25 Thread Kelly Thompson
I have R packages I want to use. Q. What is the "best" way to get to a point where all of the packages are installed and "ready to use", AND where I only install or re-install a package if doing so is needed? #I searched the web for insights and found these: