handle full line selection edge case for execution of roxygen examples