Open cognitivepsychology opened 3 years ago
@cognitivepsychology, definitely looks like an issue caused by non-ASCII characters in your data. Unfortunately I don't have any experience trying to work with such characters in R, but from what I have read it seems that it is important to set the locale
and encoding
when reading in the data. Not sure how you have read your data into R, but since it is a tibble I suspect that maybe used read_csv()
? Perhaps you could try the following when reading in your data and then pass that to data_edit()
?
library(readr)
locale("ko")
my_data <- read_csv(file = "my_data.csv",
locale = locale(date_names = "ko", encoding = "UTF-8"))
Thank you for your answer, Mr. Hammill. Unfortunately, it seems that I didn't set the locale and the encoding properly when I read my data at first. Since I already walked a too long long code-way from the point of importing the data, it is almost impossible to re-read my data at this moment to fix the problem. However, I'll definitely try your suggestion next time. Thank you for your advice and your great package.
Best, Galaxy
Hi, Mr. Hammill,
I installed DataEditR through the CRAN. Actually, at first it worked fine, but at some point I started receiving errors. My data frame (usually tibble format) is not displayed at the pop-up dialog window when I run the data_edit function. Though the pop-up appears a few seconds, it always fleetingly is shut with the following error message:
My session information is as followings:
As long as I change my locale to "Sys.setlocale(category = "LC_ALL", locale = "English")", the data_edit function seems to work fine. However, the problem is then, that I can't see any Korean character strings in my data frame any more because my locale was set to English! How can I fix this problem? I greatly appreciate if you give me any useful advice. Thank you for your time.
Best, Galaxy