title: Installing lmtest package source
body: <p>I'm wanting to install lmtest's source code. I tried the following, and got an error. Any help is appreciated. Thanks. </p>
  
  <pre><code>&gt; 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
  
  &gt; * installing *source* package ‘lmtest’ ...
  &gt; ** package ‘lmtest’ successfully unpacked and MD5 sums checked
  &gt; ** 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
  &gt; ERROR: compilation failed for package ‘lmtest’
  &gt; * removing ‘/Library/Frameworks/R.framework/Versions/3.3/Resources/library/lmtest’
  &gt; Warning in install.packages :   installation of package
  &gt; ‘/var/folders/z6/1rpmk8d971n2864kd2d514g40000gn/T//RtmpXtgPIq/downloaded_packages/lmtest_0.9-34.tar.gz’
  &gt; had non-zero exit status
  </code></pre>