2

I'm using R/R-Studio. Is there a possibility to automatically include always the same lines of code/comments when creating a new script?

8
  • "lines of code/comments" - do you mean load certain packages every time? Look into .Rprofile
    – zx8754
    Jun 21, 2016 at 6:56
  • Yes, for example. And adding the same comments at the start of the script every time.
    – Adam_Smith
    Jun 21, 2016 at 6:57
  • Good question: How about author, created, ...?
    – Christoph
    Jun 21, 2016 at 7:14
  • I would create a template.R and open it for new files, then Save as.
    – zx8754
    Jun 21, 2016 at 7:16
  • Same question, with no answer: stackoverflow.com/questions/35158708
    – zx8754
    Jun 21, 2016 at 7:20

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Browse other questions tagged or ask your own question.