【发布时间】: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 之间是否有接口,或者有什么方法可以使上述工作。
【问题讨论】: