View() crashes RStudio on Windows 7
I have found that using View a particular
data.frame will consistently crash RStudio. This is
done on a 64-bit Windows 7 machine using R version 2.15.2.
# Crashes RStudio
b <- "2000-01-01"
df1 <- data.frame(b)
df1$b <- strptime(b, "%Y-%m-%d")
View(df1)
Notably the View command is automatically run when
I try to click on the df1 object in the Workspace
window.
Interestingly, this commands works fine:
# Works
b <- "2000-01-01"
df1 <- data.frame(b=strptime(b, "%Y-%m-%d"))
View(df1)
Here is my sessionInfo():
R version 2.15.2 (2012-10-26)
Platform: x86_64-w64-mingw32/x64 (64-bit)
locale:
[1] LC_COLLATE=English_United States.1252
[2] LC_CTYPE=English_United States.1252
[3] LC_MONETARY=English_United States.1252
[4] 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] tools_2.15.2
Comments are currently closed for this discussion. You can start a new one.
2 Posted by Kevin Dykstra on 14 Mar, 2013 05:29 PM
Any resolution to this? I am running R2.14.1, 64 bit. Same thing when I click on an object or type it in the console.
3 Posted by Aman Verma on 14 Mar, 2013 05:57 PM
No, this still crashes RStudio 0.97.316 on 64-bit Windows 7 running R 2.15.3, which I think is the newest everything as of today. I have also confirmed that it still exists in last night's build.
I suspect it has something to do with the way that RStudio overrides
utils:::View(). There is a recent question here about this, I suspect it is related.Interestingly, if you use R's internal
utils:::View(df1)on the example above, it works, in the sense that it displays the usual ugly R viewer.Support Staff 4 Posted by Josh Paulson on 15 Mar, 2013 03:05 PM
Aman and Kevin,
Thanks for reporting this and I was able to reproduce as well. I've filed a bug for this and we'll be taking a look. We do implement the View() function ourselves and likely that is where something is going wrong. Note that more simple calls to
View()still work such as:Thanks!
Josh
Josh Paulson closed this discussion on 15 Mar, 2013 03:05 PM.
Kevin Dykstra re-opened this discussion on 15 Mar, 2013 04:32 PM
5 Posted by Kevin Dykstra on 15 Mar, 2013 04:32 PM
I can confirm that for most objects it works fine. It just so happened that the very first one I tried did not work.
Sent from my iPhone