-
Notifications
You must be signed in to change notification settings - Fork 76
Expand file tree
/
Copy pathadd_to_.First_in_Rprofile.site.Rd
More file actions
37 lines (34 loc) · 1.37 KB
/
Copy pathadd_to_.First_in_Rprofile.site.Rd
File metadata and controls
37 lines (34 loc) · 1.37 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
% Generated by roxygen2 (4.0.2): do not edit by hand
\name{add_to_.First_in_Rprofile.site}
\alias{add_to_.First_in_Rprofile.site}
\title{Add a code line to Rprofile.site .First}
\usage{
add_to_.First_in_Rprofile.site(code, indent = "\\t", ...)
}
\arguments{
\item{code}{A character scalar with code to add at the
beginning of the .First function in Rprofile.site}
\item{indent}{a character scalar indicating the text to
be added before code. Default is a tab.}
\item{...}{not used.}
}
\description{
Goes through Rprofile.site text, finds the .First function
- and add a line of code to the beginning of it.
}
\examples{
\dontrun{
is_in_.First_in_Rprofile.site("suppressMessages(library(installr))") # FALSE
add_to_.First_in_Rprofile.site("suppressMessages(library(installr))")
is_in_.First_in_Rprofile.site("suppressMessages(library(installr))") # TRUE
remove_from_.First_in_Rprofile.site("suppressMessages(library(installr))")
is_in_.First_in_Rprofile.site("suppressMessages(library(installr))") # FALSE
# this would still leave .First
}
}
\references{
\url{http://stackoverflow.com/questions/1395301/how-to-get-r-to-recognize-your-working-directory-as-its-working-directory}
\url{http://stackoverflow.com/questions/1189759/expert-r-users-whats-in-your-rprofile}
\url{http://www.noamross.net/blog/2012/11/2/rprofile.html}
\url{http://www.statmethods.net/interface/customizing.html}
}