Use R Markdown to Write your "Rprofile"

A simple way to write ".Rprofile" code in an R Markdown file and have it knit to the correct location for your operating system.


customiser

R-CMD-check

customiser is an R Markdown output format that makes it easy for you to customise your R experience. It does this by handling the writing of your .Rprofile file. You, as a user, are able to gather and annotate the R code that you would like to run when your R session starts and customiser will send it to the appropriate place for R to read it at start-up.

Installation

You can install the released version of customiser from CRAN with:

install.packages("customiser")

And the development version from GitHub with:

# install.packages("remotes")
remotes::install_github("jameslairdsmith/customiser")

Getting started

Once you've downloaded the package, the best place to get started is in RStudio. The package comes with a template that you can open by going to: File > New File > R Markdown > From Template and then choose 'customiser'. The file will start something like this:

---
title: "My .Rprofile"
knit: customiser::customiser
---

This is a template file you can use to customise your R experience with 
the customiser package. The code that you include here will be transferred to
your .Rprofile when you 'knit'.

Inspiration

If you want to learn more about customising your R experience, you can watch this webinar.

The following people have made their .Rprofile files public:

Other ideas:

Reference manual

It appears you don't have a PDF plugin for this browser. You can click here to download the reference manual.

install.packages("customiser")

0.1.1 by James Laird-Smith, 2 years ago


https://github.com/jameslairdsmith/customiser


Report a bug at https://github.com/jameslairdsmith/customiser/issues


Browse source code at https://github.com/cran/customiser


Authors: James Laird-Smith [aut, cre, cph]


Documentation:   PDF Manual  


MIT + file LICENSE license


Imports fs, rmarkdown, knitr, rlang, withr

Suggests testthat


See at CRAN