有没有办法使用emacs安装R包?

use*_*854 6 emacs install r package ess

我正在使用ESS,但每次我需要安装新包时我都要使用R gui.没有留下emacs,有没有办法做到这一点?

Dir*_*tel 8

来自help(Startup):

 ## Example of Rprofile.site
 local({
   # add MASS to the default packages, set a CRAN mirror
   old <- getOption("defaultPackages"); r <- getOption("repos")
   r["CRAN"] <- "http://my.local.cran"
   options(defaultPackages = c(old, "MASS"), repos = r)
   ## (for Unix terminal users) set the width from COLUMNS if set
   cols <- Sys.getenv("COLUMNS")
   if(nzchar(cols)) options(width = as.integer(cols))
 })
Run Code Online (Sandbox Code Playgroud)


Anu*_*sha 6

Cc Ce i

加载所有包都需要几秒钟.