use better chain operator for R
use working directory when spliting panes