Interactive Graphics in ESS with Manipulation Pack

Does anyone know if these features can be used rs_without RStudio? I pulled this example out of the Cursar Statistical Inference class,

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

I did not understand that there are libraries that required RStudio. I am wondering if there is an interface between RStudio and ESS or somehow do the work above.

+4
source share
1 answer

https://github.com/rstudio/rstudio/tree/master/src/cpp (.. RStudio ) . ( ) Rcpp, , inline ( 100% ).

, RStudio /.

+1

Source: https://habr.com/ru/post/1540133/


All Articles