translate comment to document in R