<p><div><div><div><div data-width="100" data-show-faces="false" data-send="true" data-layout="button_count" data-height="21" data-href="https://www.r-bloggers.com/start-me-up/"></div></div><div></div></div><div></div></div>
<div>
(This article was first published on <strong><a href="http://www.jottr.org/2016/12/start-me-up.html"> jottR</a></strong>, and kindly contributed to <a rel="nofollow" href="https://www.r-bloggers.com/">R-bloggers)</a> </div>
<p>The <a target="_blank" rel="nofollow" href="https://cran.r-project.org/package=startup">startup</a> package makes it easy to control your R startup processes and to share part of your startup settings with others (e.g. as a public Git repository) while keeping secret parts to yourself. Instead of having long and windy <code>.Renviron</code> and <code>.Rprofile</code> startup files, you can split them up into short specific files under corresponding <code>.Renviron.d/</code> and <code>.Rprofile.d/</code> directories. For example,
<pre><code># Environment variables<br># (one name=value per line)<br>.Renviron.d/<br> +- lang                   # language settings<br> +- libs                   # library settings<br> +- r_cmd_check            # R CMD check settings<br> +- secrets                # secret access keys (don't share!)<br><br># Configuration scripts<br># (regular R scripts)<br>.Rprofile.d/ <br> +- interactive=TRUE/      # Used in interactive-mode only:<br> |  +- help.start.R        # - launch the help server on fixed port<br> |  +- misc.R              # - TAB completions and more<br> |  +- package=fortunes.R  # - show a random fortune (iff installed)<br> +- package=devtools.R     # devtools-specific options<br> +- os=windows.R           # Windows-specific settings<br> +- repos.R                # set up the CRAN repository<br></code></pre>
<p>All you need to do for this to work is to have a line:
<pre><code>startup::startup()<br></code></pre>
<p>in your <code>~/.Rprofile</code> file (you may use it in any of the other locations that R supports). As an alternative to manually edit this file, just call <code>startup::install()</code> and this line will be appended if missing and if the file is missing that will also be created. Don’t worry, your old file will be backed up with a timestamp.</p>
<p>The startup package is extremely lightweight, has no external dependencies and depends only on the ‘base’ R package. It can be installed from CRAN using <code>install.packages(&quot;startup&quot;)</code>. <em>Note, startup 0.4.0 was released on CRAN on 2016-12-22 – until macOS and Windows binaries are available you can install it via <code>install.packages(&quot;startup&quot;, type = &quot;source&quot;)</code>.</em></p>
<p>For more information on what’s possible to do with the startup package, see the <a target="_blank" rel="nofollow" href="https://cran.r-project.org/web/packages/startup/README.html">README</a> file of the package. </p>
<h2>Links</h2>
<ul>
<li>startup package:
<ul>
<li>CRAN page: <a target="_blank" rel="nofollow" href="https://cran.r-project.org/package=startup">https://cran.r-project.org/package=startup</a></li>
<li>GitHub page: <a target="_blank" rel="nofollow" href="https://github.com/HenrikBengtsson/startup">https://github.com/HenrikBengtsson/startup</a></li>
</ul>
</li>
</ul>
<p>
<div>
<div>To <strong>leave a comment</strong> for the author, please follow the link and comment on their blog: <strong><a href="http://www.jottr.org/2016/12/start-me-up.html"> jottR</a></strong>.</div>
<hr>
<a rel="nofollow" href="https://www.r-bloggers.com/">R-bloggers.com</a> offers <strong><a rel="nofollow" href="https://feedburner.google.com/fb/a/mailverify?uri=RBloggers">daily e-mail updates</a></strong> about <a title="The R Project for Statistical Computing" rel="nofollow" href="https://www.r-project.org/">R</a> news and <a title="R tutorials" rel="nofollow" href="https://www.r-bloggers.com/search/tutorial">tutorials</a> on topics such as: <a title="Data science" rel="nofollow" href="https://www.r-bloggers.com/search/data%20science">Data science</a>, <a title="Big Data" rel="nofollow" href="https://www.r-bloggers.com/search/Big%20Data">Big Data, <a title="R jobs" rel="nofollow" href="https://www.r-users.com/">R jobs</a>, visualization (<a title="ggplot and ggplot2 tutorials" rel="nofollow" href="https://www.r-bloggers.com/search/ggplot2">ggplot2</a>, <a title="Boxplots using lattice and ggplot2 tutorials" rel="nofollow" href="https://www.r-bloggers.com/search/boxplot">Boxplots</a>, <a title="Maps and gis" rel="nofollow" href="https://www.r-bloggers.com/search/map">maps</a>, <a title="Animation in R" rel="nofollow" href="https://www.r-bloggers.com/search/animation">animation</a>), programming (<a title="RStudio IDE for R" rel="nofollow" href="https://www.r-bloggers.com/search/RStudio">RStudio</a>, <a title="Sweave and literate programming" rel="nofollow" href="https://www.r-bloggers.com/search/sweave">Sweave</a>, <a title="LaTeX in R" rel="nofollow" href="https://www.r-bloggers.com/search/LaTeX">LaTeX</a>, <a title="SQL and databases" rel="nofollow" href="https://www.r-bloggers.com/search/SQL">SQL</a>, <a title="Eclipse IDE for R" rel="nofollow" href="https://www.r-bloggers.com/search/eclipse">Eclipse</a>, <a title="git and github, Version Control System" rel="nofollow" href="https://www.r-bloggers.com/search/git">git</a>, <a title="Large data in R using Hadoop" rel="nofollow" href="https://www.r-bloggers.com/search/hadoop">hadoop</a>, <a title="Web Scraping of google, facebook, yahoo, twitter and more using R" rel="nofollow" href="https://www.r-bloggers.com/search/Web+Scraping">Web Scraping</a>) statistics (<a title="Regressions and ANOVA analysis tutorials" rel="nofollow" href="https://www.r-bloggers.com/search/regression">regression</a>, <a title="principal component analysis tutorial" rel="nofollow" href="https://www.r-bloggers.com/search/PCA">PCA</a>, <a title="Time series" rel="nofollow" href="https://www.r-bloggers.com/search/time+series">time series</a>, <a title="finance trading" rel="nofollow" href="https://www.r-bloggers.com/search/trading">trading</a>) and more...
<img height="1" alt="" width="1" src="http://feeds.feedburner.com/~r/RBloggers/~4/sbi8l14mC-w"></a></div>