[R] more copy paste friendly logging of R statements