R:从Github

时间:2016-07-01 07:44:49

标签: r devtools

我正在尝试从Github安装dcStockR包,这是htmlwidgets维可视化库周围的dc.js包装器:devtools::install_github("yutannihilation/dcStockR")

我收到以下编码错误:

* installing *source* package 'dcStockR' ...
** R
Error in parse(outFile) : 
  C:/Users/tirthankarc/AppData/Local/Temp/Rtmpcz8pHX/devtools153839438c/yutannihilation-dcStockR-c6091c8/R/dc.R:11:59: unexpected input
10: #' @export
11: dc <- function(data, chartRecipe = c("yearlyBubbleChart",ã€
                                                              ^
ERROR: unable to collate and parse R files for package 'dcStockR'
* removing 'C:/Users/tirthankarc/Documents/R/R-3.2.5/library/dcStockR'
Error: Command failed (1)

可以在此处查看相关文件的违规行:https://github.com/yutannihilation/dcStockR/blob/master/R/dc.R#L11

两个问题:

  • 此错误是否可以为其他人重现?
  • 如果是这样,有没有办法通过将显式编码选项传递给install.packages来解决此问题?如果没有,还有哪些其他选项可以解决此问题?

0 个答案:

没有答案