Last active
January 21, 2019 08:18
-
-
Save berkorbay/cb373ff686d2dc9be99146273b260348 to your computer and use it in GitHub Desktop.
write this to terminal if you have LC problems
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
## Rule 0: strings as factors!!! | |
options(stringsAsFactors=FALSE) | |
## To avoid quaint time zone issues, set to UTC if you are working on a single timezone | |
Sys.setenv(TZ="UTC") | |
## on_sys_locale_problems | |
sudo defaults write org.R-project.R force.LANG en_US.UTF-8 #Mac Terminal | |
Sys.setlocale("LC_ALL", 'en_US.UTF-8') #Linux R Console | |
Sys.setlocale(locale="Turkish_Turkey.1254") #Windows | |
## To get proper MYSQL UTF-8 responses run this first | |
DBI::dbSendQuery(con,"SET NAMES utf8") | |
## To set the width to the terminal window width (tested on Mac) | |
## See source: https://stat.ethz.ch/pipermail/r-help/2009-December/414547.html | |
options(width=Sys.getenv("COLUMNS")) | |
## rJava related Problems | |
## reference http://www.owsiak.org/r-java-rjava-and-macos-adventures/ | |
## write the following command on TERMINAL | |
## sudo R CMD javareconf | |
##### | |
## Dynamic proxy | |
# ssh -D PORT_HERE -f -C -q -N root@IP_ADDRESS_HERE | |
#export VISUAL=nano; crontab -e | |
#chmod -R u+x /the_path_folder |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment