{"id":418,"date":"2018-07-23T22:41:53","date_gmt":"2018-07-23T14:41:53","guid":{"rendered":"https:\/\/www.zhuyanbin.com\/?p=418"},"modified":"2018-07-23T22:41:53","modified_gmt":"2018-07-23T14:41:53","slug":"r-on-mac-warning-messages-setting-lc_ctype-failed-using-c","status":"publish","type":"post","link":"https:\/\/www.yanbin888.com\/?p=418","title":{"rendered":"R on Mac &#8211; Warning messages: Setting LC_CTYPE failed, using \u201cC\u201d"},"content":{"rendered":"<p>During startup &#8211; Warning messages:<br \/>\n1: Setting LC_CTYPE failed, using &#8220;C&#8221;<br \/>\n2: Setting LC_COLLATE failed, using &#8220;C&#8221;<br \/>\n3: Setting LC_TIME failed, using &#8220;C&#8221;<br \/>\n4: Setting LC_MESSAGES failed, using &#8220;C&#8221;<br \/>\n5: Setting LC_PAPER failed, using &#8220;C&#8221;<br \/>\n[R.app GUI 1.50 (6126) x86_64-apple-darwin9.8.0]<\/p>\n<p>WARNING: You&#8217;re using a non-UTF8 locale, therefore only ASCII characters will work. Please read R for Mac OS X FAQ (see Help) section 9 and adjust your system preferences accordingly.<\/p>\n<p>&nbsp;<\/p>\n<p>answer:<\/p>\n<div class=\"post-text\">\n<ol>\n<li>Open Terminal<\/li>\n<li>Write or paste in: <code>defaults write org.R-project.R force.LANG en_US.UTF-8<\/code><\/li>\n<li>Close Terminal<\/li>\n<li>Start R<\/li>\n<\/ol>\n<\/div>\n<p><audio style=\"display: none;\" controls=\"controls\"><\/audio><\/p>\n","protected":false},"excerpt":{"rendered":"<p>During startup &#8211; Warning messages: 1: Setting LC_ <span class=\"ellipsis\">&hellip;<\/span> <span class=\"more-link-wrap\"><a href=\"https:\/\/www.yanbin888.com\/?p=418\" class=\"more-link\"><span>Read More &rarr;<\/span><\/a><\/span><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1,40],"tags":[6,41],"class_list":["post-418","post","type-post","status-publish","format-standard","hentry","category-mac","category-r","tag-mac-os-x","tag-r"],"_links":{"self":[{"href":"https:\/\/www.yanbin888.com\/index.php?rest_route=\/wp\/v2\/posts\/418","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.yanbin888.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.yanbin888.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.yanbin888.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.yanbin888.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=418"}],"version-history":[{"count":1,"href":"https:\/\/www.yanbin888.com\/index.php?rest_route=\/wp\/v2\/posts\/418\/revisions"}],"predecessor-version":[{"id":419,"href":"https:\/\/www.yanbin888.com\/index.php?rest_route=\/wp\/v2\/posts\/418\/revisions\/419"}],"wp:attachment":[{"href":"https:\/\/www.yanbin888.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=418"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.yanbin888.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=418"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.yanbin888.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=418"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}