1. 全体
> Sys.getenv()
__CF_USER_TEXT_ENCODING 0x1F5:0x1:0xE
__CFBundleIdentifier org.rstudio.RStudio
CLICOLOR_FORCE 1
COMMAND_MODE unix2003
DISPLAY /private/tmp/com.apple.launchd.zbStA3g2rP/org.xquartz:0
DYLD_FALLBACK_LIBRARY_PATH /Library/Frameworks/R.framework/Resources/lib:/Users/honomoto/lib:/usr/local/lib:/usr/lib:::/lib:/Library/Java/JavaVirtualMachines/jdk1.8.0_241.jdk/Contents/Home/jre/lib/server
EDITOR vi
GIT_ASKPASS rpostback-askpass
HOME /Users/honomoto
LANG en
LANGUAGE en
LC_CTYPE en
LC_TYPE en
LN_S ln -s
LOGNAME honomoto
MAKE make
MPLENGINE tkAgg
PAGER /usr/bin/less
PATH /usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/Library/TeX/texbin:/opt/X11/bin
R_BROWSER /usr/bin/open
R_BZIPCMD /usr/bin/bzip2
R_DOC_DIR /Library/Frameworks/R.framework/Resources/doc
R_GZIPCMD /usr/bin/gzip
R_HOME /Library/Frameworks/R.framework/Resources
R_INCLUDE_DIR /Library/Frameworks/R.framework/Resources/include
R_LIBS_SITE
R_LIBS_USER ~/Library/R/4.0/library
R_PAPERSIZE a4
R_PDFVIEWER /usr/bin/open
R_PLATFORM x86_64-apple-darwin17.0
R_PRINTCMD lpr
R_QPDF /Library/Frameworks/R.framework/Resources/bin/qpdf
R_RD4PDF times,inconsolata,hyper
R_SESSION_TMPDIR /var/folders/yw/p0wwlz5r8xj4zf001s7n3j780000gn/T//RtmppzWaAC
R_SHARE_DIR /Library/Frameworks/R.framework/Resources/share
R_STRIP_SHARED_LIB strip -x
R_STRIP_STATIC_LIB strip -S
R_SYSTEM_ABI macos,gcc,gxx,gfortran,gfortran
R_TEXI2DVICMD /usr/local/bin/texi2dvi
R_UNZIPCMD /usr/bin/unzip
R_ZIPCMD /usr/bin/zip
RMARKDOWN_MATHJAX_PATH /Applications/RStudio.app/Contents/Resources/resources/mathjax-26
RS_PPM_FD_READ 9
RS_PPM_FD_WRITE 10
RS_RPOSTBACK_PATH /Applications/RStudio.app/Contents/MacOS/rpostback
RS_SHARED_SECRET 19408203731238894728102252184
RSTUDIO 1
RSTUDIO_CONSOLE_COLOR 256
RSTUDIO_CONSOLE_WIDTH 123
RSTUDIO_PANDOC /Applications/RStudio.app/Contents/MacOS/pandoc
RSTUDIO_SESSION_PORT 25883
RSTUDIO_USER_IDENTITY honomoto
RSTUDIO_WINUTILS bin/winutils
SED /usr/bin/sed
SHELL /bin/bash
SSH_ASKPASS rpostback-askpass
SSH_AUTH_SOCK /private/tmp/com.apple.launchd.RiShkX8Usr/Listeners
TAR /usr/bin/tar
TERM xterm-256color
TMPDIR /var/folders/yw/p0wwlz5r8xj4zf001s7n3j780000gn/T/
TZDIR macOS
USER honomoto
XPC_FLAGS 0x0
XPC_SERVICE_NAME application.org.rstudio.RStudio.262356.262643
2. 日本語
LANG ja_JP.UTF-8
LANGUAGE jp
LC_CTYPE ja_JP.UTF-8
3. Locale
> Sys.getlocale()
[1] "ja_JP.UTF-8/ja_JP.UTF-8/ja_JP.UTF-8/C/ja_JP.UTF-8/ja_JP.UTF-8"
> Sys.setlocale("LC_TIME","C")
[1] "C"
> Sys.getlocale("LC_TIME", "ja_JP.UTF-8/ja_JP.UTF-8/ja_JP.UTF-8/C/ja_JP.UTF-8/ja_JP.UTF-8")
> system("locale")
LANG="en"
LC_COLLATE="C"
LC_CTYPE="C"
LC_MESSAGES="C"
LC_MONETARY="C"
LC_NUMERIC="C"
LC_TIME="C"
LC_ALL=
> system("locale")
LANG="ja_JP.UTF-8"
LC_COLLATE="ja_JP.UTF-8"
LC_CTYPE="ja_JP.UTF-8"
LC_MESSAGES="ja_JP.UTF-8"
LC_MONETARY="ja_JP.UTF-8"
LC_NUMERIC="ja_JP.UTF-8"
LC_TIME="ja_JP.UTF-8"
LC_ALL=
4. 日本語環境サンプル
system("locale")
LANG="ja_JP.UTF-8"
LC_COLLATE="ja_JP.UTF-8"
LC_CTYPE="ja_JP.UTF-8"
LC_MESSAGES="ja_JP.UTF-8"
LC_MONETARY="ja_JP.UTF-8"
LC_NUMERIC="ja_JP.UTF-8"
LC_TIME="ja_JP.UTF-8"
LC_ALL=
0 件のコメント:
コメントを投稿