R/Rprofile.R

#' Creat '.Rprofile'
#'
#' @description Or type file.edit('~/.Rprofile') in R.
#' @examples
#'
#' # Not run
#' #-----------------------------------------------------------
#' ## Type the following codes in your '.Rprofile'.
#' R_LIBS_USER="~/R/UserPackages"
#'
#' # https://cloud.r-project.org/ is the CRAN Mirrors,
#' # which Automatic redirection to servers worldwide,
#' # currently sponsored by Rstudio.
#' options(repos = c(CRAN = "https://cloud.r-project.org/",
#'                  CRANextra = "http://www.stats.ox.ac.uk/pub/RWin"))
#' #-----------------------------------------------------------------------
#' # End (Not run)
#'
#' @export
#'

Rprofile <- function(){
file.edit('~/.Rprofile')
}
PhDMeiwp/basicPackages documentation built on May 28, 2019, 5:35 p.m.