R View() function does not show data frame

旧巷老猫 提交于 2021-01-28 06:29:16

问题


I am using R (Version 3.1.2) with RStudio (Version 0.98.1091) on a Linux Ubuntu machine. I have a csv file loaded in variable:

rr  <- read.csv("/home/user/seconds.csv")

When I call View(rr) I expect to open a new tab and display the CSV data in the rr variable. However, it opens a new tab called rr and it displays the following message.

/content?title=rr&file=94af460bd6644d3aaac734d585046c4f.htm not found

回答1:


The View function is from package 'utils' which is not supported by the version of R you are using.




回答2:


I am on a x86_64-w64-mingw32 system with R version 3.4.1, but I want to share a simple solution to get View working again in my case.

Following the step 4 of advice from Tian on Rstudio support (https://support.rstudio.com/hc/en-us/community/posts/115007743908-The-Rstudio-view-not-work-just-blank-), I entered:

install.packages("dplyr", dependencies = TRUE)

Now it works.



来源:https://stackoverflow.com/questions/27857161/r-view-function-does-not-show-data-frame

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!