ここでは、ついに国際化されたR-2.1.1 Windows版を新規インストールして、日本語メッセージで使う方法を説明します。
まず、CRAN(国内ミラー)からWindows用のバイナリ をダウンロードします。次に、rw2011patを実行します。以下のようなウィンドウが現れます。"OK"ボタンで次に進みます。
以下のように変更します。
Rconsole
# Optional parameters for the console and the pager # The system-wide copy is in rwxxxx/etc. # A user copy can be installed in `R_USER'. ## Style # This can be `yes' (for MDI) or `no' (for SDI). MDI = Yes # the next two are only relevant for MDI toolbar = yes statusbar = yes ## Font. # Please use only fixed width font. # If font=FixedFont the system fixed font is used; in this case # points and style are ignored. If font begins with "TT ", only # True Type fonts are searched for. font = TT MS Gothic points = 10 style = normal # Style can be normal, bold, italic # Dimensions (in characters) of the console. rows = 25 columns = 80 # Dimensions (in characters) of the internal pager. pgrows = 25 pgcolumns = 80 # should options(width=) be set to the console width? setwidthonresize = yes # memory limits for the console scrolling buffer, in bytes and lines bufbytes = 65000 buflines = 8000 # Initial position of the console (pixels, relative to the workspace for MDI) # xconsole = 0 # yconsole = 0 # Dimension of MDI frame in pixels # Format (w*h+xorg+yorg) or use -ve w and h for offsets from right bottom # This will come up maximized if w==0 # MDIsize = 0*0+0+0 # MDIsize = 1000*800+100+0 # MDIsize = -50*-50+50+50 # 50 pixels space all round # The internal pager can displays help in a single window # or in multiple windows (one for each topic) # pagerstyle can be set to `singlewindow' or `multiplewindows' pagerstyle = multiplewindows ## Colours for console and pager(s) # (see rwxxxx/etc/rgb.txt for the known colours). background = White normaltext = NavyBlue usertext = Red highlight = DarkRed ## Initial position of the graphics window ## (pixels, <0 values from opposite edge) xgraphics = -25 ygraphics = 0
Rdevga
# The system-wide copy is in rwxxxx/etc. # A user copy can be installed in `R_USER'. # Format is # [TT] face:style # where style is plain, bold, italic or bold&italic. # If 'TT' is present, only True Type fonts are searched. # Remarks: # (a) Windows graphics engine can only rotate True Type fonts; # (b) Only the first 32 fonts will be used. TT MS Gothic : plain TT MS Gothic : bold TT MS Gothic : italic TT MS Gothic : bold&italic # Please, don't change the following definition. The plot math engine # assumes that font5 contains greek letters and math symbols TT Symbol: plain TT Times New Roman : plain TT Times New Roman : bold TT Times New Roman : italic TT Times New Roman : bold&italic TT Courier New: plain TT Courier New: bold TT Courier New: italic TT Courier New: bold&italic TT Century Gothic : plain TT Century Gothic : bold TT Century Gothic : italic TT Century Gothic : bold&italic TT Matisse ITC: plain TT Wingdings: plain
これで、次回のR起動時から、メッセージ、グラフィックとも文字化けせず日本語を使うことができるでしょう。
---- Please select a CRAN mirror for use in this session --- 警告:unable to access index for respo ---- Please select a CRAN mirror for use in this session --- 警告:unable to access index for repository ftp://ftp.u-aizu.ac.jp/pub/lang/R/CRAN/bin/windows/contrib/2.1 警告メッセージ:'www.stats.ox.ac.uk'を解決することができません 警告:unable to access index for repository http//www.stats.ox.ac.uk/pub/RWin/bin/windows/contrib/2.1 いかにエラー install.packages(NULL, .libPaths()[1], dependecies = TRUE, type = type): no packages were specified というメッセージが出ます。