2015-08-14 102 views
3
  • [R 3.2.1
  • RStudio版本0.99.473
  • Macintosh的;英特爾的Mac OS X 10_9_4

點擊更新包的結果,上面寫着「R錯誤」,然後錯誤在控制檯打印出一個彈出窗口:更新包不起作用

Error in if (substr(cranRep, cranRepLen, cranRepLen) != "/") cranRep <- 
paste(cranRep, :missing value where TRUE/FALSE needed 

我有一個.Rprofile我用於啓動。

回答

4

隨着a little digging into Github,答案似乎被指定在.Rprofile如下:

options(repos=c(CRAN="https://cran.rstudio.com/")) 

,而不是

options(repos="https://cran.rstudio.com/") 
0

我有同樣的問題,即缺少值,其中TRUE/FALSE所需

R和RStudio版本
  • R工作室1.0.143
  • ř3.4.0

我通過編輯Rprofile.site解決。下面是步驟:

步驟1: 轉到C:\ Program Files文件\ r \ R-3.4.0 \等或位置,其中Rprofile.site是

步驟2: 打開Rprofile.site 。和編輯 「設置克蘭鏡」 來

local({r <- getOption("repos") 
    r["CRAN"] <- "https://cran.rstudio.com/" 
    options(repos=r)}) 

第3步:重新啓動 如果RStudio必要