cutpointr icon indicating copy to clipboard operation
cutpointr copied to clipboard

Odd behevior in RStudio

Open PrionMike opened this issue 5 months ago • 8 comments

Dear Christian, I am having a strange experience using cutpointr 1.1.2. In case it is relevant, I am working in RStudio 2024.04.2 Build 764, running R 4.4.1 on WIndows 10 version 22H2, build 19045.4894. I run a straightforward version of the cutpointr function, with Youden Index maximization on a continuous x variable (mkr) and binary (1/0) class variable (Dx), with bootstrapping. It does not seem to matter that I am asking for 1000 bootstrap iterations, because I can get the same strange experience with 100 iterations.

bcutYI_mkr <- cutpointr( data = data, x = mkr, class = Dx, method = maximize_metric, metric = youden, boot_runs = 1000 ) which seems to run fine. However, when I call the result variable bcutYI_mkr by name to examine the results, or call summary(), the display takes about a full minute to update. I know R is still running, because the cursor is still blinking throughout the wait period, but while I am waiting for the console to update RStudio is unresponsive. Another incidental observation is that in the Environment pane the variable bcutYI-mkr shows a size of 0 B, even though it must exist because I can eventually display it. Any thoughts?

PrionMike avatar Sep 17 '24 19:09 PrionMike