1
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

RstudioでRversionを切り替える

Posted at

RstudioでRのversionを切り替えたいと思い,ChatGPTに聞いてみたら,ToolsのGEneral optionから変更できるとのこと

スクリーンショット 2025-12-07 14.21.41.png

R versionという項目があるはずだが,ないじゃん!

どうやらRstudio2024ではGUIでR versionを変更できないようだ

そこでターミナルでRのversionを直接変更できるとのこと

ls -l /Library/Frameworks/R.framework/Versions/
total 0
drwxrwxr-x  6 root  admin  192 12  4 15:02 4.2
drwxrwxr-x  3 root  admin   96 12  7 13:21 4.4-arm64
drwxrwxr-x  6 root  admin  192 12  7 13:21 4.5-arm64
lrwxrwxr-x  1 root  admin    9 12  7 13:21 Current -> 4.5-arm64

currentが4.5系のようだ

これを4.2に変更してみる

sudo ln -sfn /Library/Frameworks/R.framework/Versions/4.2 \
  /Library/Frameworks/R.framework/Versions/Current

passwordを要求されて打ち込む,Rstudioを再起動してみると
image.png

おお変更できてる,おっけおっけ
前のverみたいにGUIで変更できるようにして欲しいなあ

1
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?