-
Notifications
You must be signed in to change notification settings - Fork 76
Expand file tree
/
Copy pathremove_from_.First_in_Rprofile.site.Rd
More file actions
40 lines (37 loc) · 1.37 KB
/
Copy pathremove_from_.First_in_Rprofile.site.Rd
File metadata and controls
40 lines (37 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
37
38
39
% Generated by roxygen2 (4.0.2): do not edit by hand
\name{remove_from_.First_in_Rprofile.site}
\alias{remove_from_.First_in_Rprofile.site}
\title{Remove a code line from Rprofile.site .First}
\usage{
remove_from_.First_in_Rprofile.site(code, fixed = TRUE, ...)
}
\arguments{
\item{code}{A character scalar with code to add at the
beginning of the .First function in Rprofile.site}
\item{fixed}{passed to \link{grep}}
\item{...}{passed to \link{grep}}
}
\value{
logical. Did we remove that line or not (in case it was not
there)
}
\description{
Goes through Rprofile.site text, finds a line of code - and
removes 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}
}