简体   繁体   中英

R data.entry() can't open

when I call the function data.entry(), I got an error about losing a package "XQuartz", so I downloaded one and installed it.

When I tried again, I got a new error as follows:

''' Error in .External2(C_dataentry, data, modes) : unable to start data editor In addition: Warning message: In dataentry(odata, as.list(Modes)) : unable to open display '''

Can someone help me figure this out?

Data.entry behaviour varies wildly by system and GUI, and sometimes isn't supported at all in some builds, giving the error you report. See ?data.entry for some system specific details.

Please post your operating system/GUI details and your r version/details if you can't get it to work.

Additional notes: The source code for data.entry() generates that error when it cannot resolve the XOpenDisplay command with the operating system's GUI environment. On Linux, that usually means X is to blame. data.entry is mostly intended for Windows because there are better alternatives on *unix systems and less X hair-ripping config frustrations.

RStudio may help you with visual data entry/editing with less debugging.

Another option is the package RCmdr which includes a visual editor that works on some platforms. It's available on CRAN: Rcmd package

Yet another option is to use the function edit() from the utils package instead of data.entry . It has fewer dependencies on the platform. See ?edit or utils::edit.data.frame

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM