no need for temp file to gather rstudio version

this (manually) applies #43 which @pshevtsov had kindly posted and (accidentally ?) withdrawn