You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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:
data_edit(my_data)
필요한 패키지를 로딩중입니다: shiny
Listening on http://127.0.0.1:7744
Warning: Setting row names on a tibble is deprecated.
Warning: Error in type.convert.default: invalid multibyte string at '<eb><85><b8>
68: type.convert.default
66: type.convert.data.frame
64: data_format
63: <reactive>
47: data_update
46: <observer>
3: shiny::runApp
2: runGadget
1: data_edit
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
The text was updated successfully, but these errors were encountered:
cognitivepsychology
changed the title
Error in type.convert.default
How can I fix "Error in type.convert.default"?
Sep 13, 2021
@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()?
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.
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
The text was updated successfully, but these errors were encountered: