【问题标题】:interactive graphics in ESS with manipulate packageESS 中带有操作包的交互式图形
【发布时间】:2014-05-11 20:13:43
【问题描述】:

有人知道在没有 RStudio 的情况下是否可以使用这些 rs_ 函数?我从 coursera 类 Statistical Inference 中提取了这个例子,

library(UsingR); data(galton)
library(manipulate)
myHist <- function(mu){
  hist(galton$child,col="blue",breaks=100)
  lines(c(mu, mu), c(0, 150),col="red",lwd=5)
  mse <- mean((galton$child - mu)^2)
  text(63, 150, paste("mu = ", mu))
  text(63, 140, paste("Imbalance = ", round(mse, 2)))
}
> manipulate(myHist(mu), mu = slider(62, 74, step = 0.5))
Error in FUN("rs_createUUID"[[1L]], ...) : no such symbol rs_createUUID

我没有意识到有些库需要 RStudio。我想知道 RStudio 和 ESS 之间是否有接口,或者有什么方法可以使上述工作。

【问题讨论】:

    标签: r rstudio ess


    【解决方案1】:

    您需要尝试克隆并让https://github.com/rstudio/rstudio/tree/master/src/cpp 下的软件包以独立(即不运行 RStudio)的方式工作。这些将需要(至少)安装 Rcpp 软件包,可能也需要 inline(不是 100% 确定)。

    检查这些文件的许可证,因为您可能只能在某些限制/约束下在 RStudio 之外使用这些文件。

    【讨论】:

      猜你喜欢
      • 2013-01-30
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2019-04-11
      • 2017-05-18
      • 1970-01-01
      • 2019-01-27
      • 2015-12-19
      相关资源
      最近更新 更多