White scenery @showyou, hatena

If you have any comments, you may also send twitter @shsub or @showyou.

macのbrew updateでエラー

以前から出てたかもしれないけど、Rが起動しなくなっていたのでこれを機に直した。

error: The following untracked working tree files would be overwritten by merge:
    Library/Formula/cake.rb
    Library/Formula/sparse.rb

homebrew - Brew update failed - Stack Overflow参考。

% cd $(brew --prefix)                                                                         
% sudo git reset --hard HEAD                                                          
Password:
HEAD is now at 8510fc8 pandoc-citeproc: update 0.7.1.1 bottle.
% rm Library/Formula/cake.rb
% rm Library/Formula/sparse.rb
% sudo git fetch origin
% sudo git reset --hard origin/master
% sudo brew update
 

さらにRがgfortranが不足して起動しなかったので、

sudo brew remove gfortran

sudo brew reinstall gcc --with-fortran 

して修正。