R: Encoding issues when installing package from Github

大城市里の小女人 提交于 2019-12-23 23:23:49

问题


I am trying to install the dcStockR package from Github, which is an htmlwidgets wrapper around the dc.js dimensional visualization library: devtools::install_github("yutannihilation/dcStockR").

I get the following encoding error:

* 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)

The offending lines of the file in question can be viewed here: https://github.com/yutannihilation/dcStockR/blob/master/R/dc.R#L11.

Two questions:

  • Is this error reproducible for others?
  • If so, is there a way to fix this by passing an explicit encoding option to install.packages? If not, what other options are available to fix this issue?

来源:https://stackoverflow.com/questions/38139808/r-encoding-issues-when-installing-package-from-github

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!