R-2.1.1 (Windows版)のインストール

ここでは、ついに国際化されたR-2.1.1 Windows版を新規インストールして、日本語メッセージで使う方法を説明します。

  1. ダウンロード

    まず、CRAN(国内ミラー)からWindows用のバイナリ win-00.gif をダウンロードします。次に、rw2011patを実行します。以下のようなウィンドウが現れます。"OK"ボタンで次に進みます。

    win-01.gif

  2. "次へ"ボタンで次に進みます。

    win-02.gif

  3. License Agreement が表示されます。受諾する場合は"同意する"にチェックし、

    win-03.gif

  4. "次へ"で次に進みます。受諾できない場合はRを利用することはできません。

    win-04.gif

  5. インストール先を選択します。多くの場合はデフォルトのままで問題ないでしょう。"次へ"で次に進みます。

    win-05.gif

  6. インストールコンポーネントの選択です。メニューの"Version for East Asian Languages"を選択

    win-06.gif

  7. "次へ"で次に進みます。

    win-07.gif

  8. スタートメニューフォルダの選択です。多くの場合はデフォルトのままで問題ないでしょう。"次へ"で次に進みます。

    win-08.gif

  9. デスクトップアイコンやクイック起動アイコンの設定です。好みに応じて設定し、"次へ"で次に進みます。

    win-09.gif

  10. インストールが実行されます。完了するまでしばらく待ちましょう。

    win-10.gif

  11. インストールが完了しました。"完了"を押して終了し、続けてインストールされたRを起動して日本語表示のための設定を行いましょう。

    win-11.gif

  12. Rを起動します。最初は日本語環境のための設定は行われていないので、メッセージが文字化けします・・・。そこで,日本語化設定を行います。「C:\Program Files\R\rw2011pat\etc」の Rconsole と Rdevga をテキストエディタ(メモ帳など)で開き・・・

    win-12.gif

    以下のように変更します。

    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起動時から、メッセージ、グラフィックとも文字化けせず日本語を使うことができるでしょう。



添付ファイル: filewin-07.gif 2718件 [詳細] filewin-08.gif 3200件 [詳細] filewin-01.gif 2948件 [詳細] filewin-02.gif 2740件 [詳細] filewin-09.gif 2789件 [詳細] filewin-12.gif 3561件 [詳細] filewin-03.gif 2822件 [詳細] filewin-10.gif 3507件 [詳細] filewin-06.gif 2879件 [詳細] filewin-11.gif 3448件 [詳細] filewin-04.gif 2726件 [詳細] filewin-00.gif 6242件 [詳細] filewin-05.gif 2708件 [詳細]

トップ   編集 凍結 差分 バックアップ 添付 複製 名前変更 リロード   新規 一覧 検索 最終更新   ヘルプ   最終更新のRSS
Last-modified: 2023-03-25 (土) 11:19:17