6

I followed the official guide to install RStudio Server. Everything works fine, but the functions, fix and edit, are not available.

For instance, I have a data.frame called "data" as follows.

1,2,3 
4,5,6 
7,8,9

The command "View(data)" works fine. But when I execute the command "edit(data)" or "fix(data)", it comes some error messages.

The error messages of "fix(data)" :

Error in .External2(C_dataentry, datalist, modes) : 
unable to start data editor
In addition: Warning message:
In edit.data.frame(get(subx, envir = parent), title = subx, ...) :
unable to open display

The error message of "edit(data)" :

Error in edit : Editing of data frames and matrixes is not supported in RStudio.

I ran the same codes on my local rstudio (windows 8.1), and all the functions work fine! It's really wired... Anyone can help me? Thanks a lot!

p.s. I read this post already, but it doesn't work for me.

sessionInfo:

R version 3.1.3 (2015-03-09)
Platform: x86_64-redhat-linux-gnu (64-bit)
Running under: CentOS Linux 7 (Core)

locale:
 [1] LC_CTYPE=zh_TW.UTF-8       LC_NUMERIC=C               LC_TIME=zh_TW.UTF-8       
 [4] LC_COLLATE=zh_TW.UTF-8     LC_MONETARY=zh_TW.UTF-8    LC_MESSAGES=zh_TW.UTF-8   
 [7] LC_PAPER=zh_TW.UTF-8       LC_NAME=C                  LC_ADDRESS=C              
[10] LC_TELEPHONE=C             LC_MEASUREMENT=zh_TW.UTF-8 LC_IDENTIFICATION=C       

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

loaded via a namespace (and not attached):
[1] tools_3.1.3
Konrad Rudolph
  • 530,221
  • 131
  • 937
  • 1,214
Mark Lee
  • 301
  • 1
  • 2
  • 9
  • What you show from "data" is not a data.frame. –  Apr 01 '15 at 08:54
  • 1
    Should you be editing the data by hand? Perhaps this feature is turned off for the server edition to save people from themselves? – Roman Luštrik Apr 01 '15 at 09:05
  • @Pascal Sorry, my reputation is not enough to post image XD. The View(data) looks like this http://i.imgur.com/yFdea0l.png – Mark Lee Apr 01 '15 at 09:07
  • @RomanLuštrik You might be right, these functions are a little bit dangerous for beginner (like me), but I dont think the error message of "fix" means security concerns. – Mark Lee Apr 01 '15 at 09:16
  • @MarkLee Did you ever find a solution for this? We're trying to use `fix()` on RStudio Server as well, and are experiencing the same problems. – Ratnanil Sep 05 '18 at 13:11
  • @Ratnanil Sorry, I didn't find the solution. Now I'm working with Python, so I didn't looking for the solution deeper. If you find any clue, please share with me. – Mark Lee Sep 07 '18 at 02:38

1 Answers1

0

I had the same problem, but then I installed the XQuartz package from here: https://www.xquartz.org/

And then another thread, from a while back, reminded me that I needed to restart my Mac for the x11 app to take effect: https://stackoverflow.com/a/36486555

Community
  • 1
  • 1
Rich
  • 1
  • 1
    Your solution is for using R in terminal. This question asks about the Rstudio server (which you typically load it in your web browser on a client computer). – Mehrad Mahmoudian Feb 13 '18 at 08:12