Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upstr() is slow for R6 objects containing large vectors #159
Comments
|
Seems like |
|
It looks most of the time is spent in this Line 114 in 1c1f425 Given that the subsequent paste(as.character(head(obj, 60))Do you guys see anything that I'm overlooking? |
|
I think ❯ head(environment())
Error in x[seq_len(n)] : object of type 'environment' is not subsettable
❯ head(ps::ps_handle())
Error in x[seq_len(n)] : object of type 'externalptr' is not subsettable
❯ format(environment())
[1] "<environment: R_GlobalEnv>"
❯ format(ps::ps_handle())
[1] "<ps::ps_handle> PID=18088, NAME=R, AT=2018-09-26 20:00:02" |
|
Btw. there are some possibly related changes in R-3.5.1-patched, it has a workaround for |
|
But |
|
Yes, for |
See also: rstudio/rstudio#3544
Could R6 subset large vectors before calling
str()?