2016-12-08 34 views
0

lmtestのソースコードをインストールしたいと思います。私は次のことを試してみて、間違いました。どんな助けもありがとうございます。ありがとう。lmtestパッケージソースのインストール

> install.packages("https://cran.r-project.org/src/contrib/lmtest_0.9-34.tar.gz", repo=NULL, type="source") 

trying URL 'https://cran.r-project.org/src/contrib/lmtest_0.9-34.tar.gz' 
Content type 'application/x-gzip' length 180257 bytes (176 KB) 
================================================== 
downloaded 176 KB 

> * installing *source* package ‘lmtest’ ... 
> ** package ‘lmtest’ successfully unpacked and MD5 sums checked 
> ** libs gfortran-4.8 -fPIC -g -O2 -c pan.f -o pan.o make: gfortran-4.8: No such file or directory make: *** [pan.o] Error 1 
> ERROR: compilation failed for package ‘lmtest’ 
> * removing ‘/Library/Frameworks/R.framework/Versions/3.3/Resources/library/lmtest’ 
> Warning in install.packages : installation of package 
> ‘/var/folders/z6/1rpmk8d971n2864kd2d514g40000gn/T//RtmpXtgPIq/downloaded_packages/lmtest_0.9-34.tar.gz’ 
> had non-zero exit status 
+0

'make:gfortran-4.8:No such file or directory'これはおそらくエラーにつながります。フォルダを作成して再インストールしてみてください – user5249203

答えて

0

lmtestパッケージcarに依存します。 carのインストールに関する問題についてA related question has been posted previously OPはadditional details on resolving the issueと回答しました。

問題の1つは、システムパッケージであるgfortranが利用できないということです。私の経験では、パッケージが利用できないシステムパッケージに依存しているため、 "非ゼロ終了ステータス"がありました。

関連する問題