LoginSignup
0
0

More than 5 years have passed since last update.

R install for linux トラブル ```package ‘stats’ in options("defaultPackages") was not found```

Posted at

install.packagesでエラー

ubuntu14.04にRをインストールしなおしたところ,
Rを起動し,install.packagesを行おうとすると,

Error in .chooseMirror(m, "CRAN", graphics, ind, useHTTPS)
 : could not find function "setNames"

調べてみたところ

sudo apt-get install r-base
sudo apt-get install r-base-dev

あたりをやりなおしてみれば? という記事は出てくるものの,解決しない.

package ‘stats’ in options("defaultPackages") was not found

よくよく確認してみると,R起動時に下記のエラーが出ていた.

Error in dyn.load(file, DLLpath = DLLpath, ...) : 
  unable to load shared object '/usr/lib/R/library/stats/libs/stats.so':
  /usr/lib/liblapack.so.3: undefined symbol: ATL_chemv
During startup - Warning message:
package ‘stats’ in options("defaultPackages") was not found 

ので,labackをインストールしなおす.

sudo apt-get install liblapack3

無事解決!

0
0
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
0
0