RStudio crashing but code runs in Rterm

I've never run into this before and I have no idea if it is reproducible (Although I did try on two different computers)

I'm running cosine similarity using the coop package on a sparse matrix that is 4343 rows by 300 columns:

a <- read.csv("")
b <- as.matrix(a)
b <- Matrix::Matrix(b)

For some reason RStudio was crashing if 130 or more columns were being provided to coop::cosine()

However it runs just fine using Rterm.

[1] "1.1.463"

[1] "C:\\PROGRA~1\\R\\R-35~1.3\\bin\\x64\\R.exe"

[1] "C:\\Users\\chase\\AppData\\Roaming\\TinyTeX\\bin\\win32\\pdflatex.exe"

[1] "C:\\Users\\chase\\AppData\\Roaming\\TinyTeX\\bin\\win32\\bibtex.exe"

[1] ""

[1] "C:\\PROGRA~1\\Git\\cmd\\git.exe"

[1] ""

R version 3.5.3 (2019-03-11)
Platform: x86_64-w64-mingw32/x64 (64-bit)
Running under: Windows >= 8 x64 (build 9200)

Matrix products: default

[1] LC_COLLATE=English_United States.1252  LC_CTYPE=English_United States.1252   
[3] LC_MONETARY=English_United States.1252 LC_NUMERIC=C                          
[5] LC_TIME=English_United States.1252    

attached base packages:
[1] stats     graphics  grDevices utils     datasets  methods   base     

loaded via a namespace (and not attached):
[1] compiler_3.5.3 tools_3.5.3    yaml_2.2.0    

          sysname           release           version          nodename 
        "Windows"        ">= 8 x64"      "build 9200" "DESKTOP-5LBAL80" 
          machine             login              user    effective_user 
         "x86-64"           "chase"           "chase"           "chase" 

R Version:
platform       x86_64-w64-mingw32          
arch           x86_64                      
os             mingw32                     
system         x86_64, mingw32             
major          3                           
minor          5.3                         
year           2019                        
month          03                          
day            11                          
svn rev        76217                       
language       R                           
version.string R version 3.5.3 (2019-03-11)
nickname       Great Truth                 

Maybe it's not working in Rterm, I tried again and Rterm crashed. Will follow up some more on my end...

I don't know what I was doing that first time in Rterm, it's probably a bug in coop in that case. I will submit an issue report to coop


This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.

If you have a query related to it or one of the replies, start a new topic and refer back with a link.