Warning: file_get_contents(/data/phpspider/zhask/data//catemap/4/r/79.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
R在(函数(x):未使用的参数(envir=)中使用操纵函数和get:Error_R_Environment - Fatal编程技术网

R在(函数(x):未使用的参数(envir=)中使用操纵函数和get:Error

R在(函数(x):未使用的参数(envir=)中使用操纵函数和get:Error,r,environment,R,Environment,我打算使用: 使用“操纵”时,我总是会遇到此错误: 函数x中出错:未使用的参数envir= 我在上面的代码中没有看到任何问题。我不知道为什么会出现这个错误。我的R会话是干净的和新的 我通过R Studio版本0.99.441使用R3.2 64位。 知道缺少的设置吗?通过将Rstudio中的R目录设置为win库所在的默认工作目录,找到了答案 install.packages("UsingR") library(manipulate) library(UsingR)

我打算使用:

使用“操纵”时,我总是会遇到此错误:

函数x中出错:未使用的参数envir=

我在上面的代码中没有看到任何问题。我不知道为什么会出现这个错误。我的R会话是干净的和新的

我通过R Studio版本0.99.441使用R3.2 64位。
知道缺少的设置吗?

通过将Rstudio中的R目录设置为win库所在的默认工作目录,找到了答案

    install.packages("UsingR")
    library(manipulate)
    library(UsingR)

    data(galton)

    ########## Manipulable Histogram ##########

    myHist <- function(mu, Color){
    hist(galton$child, col=Color, breaks=10)
    lines(c(mu,mu), c(0, 150), col="red", lwd=5)
    }

    manipulate(myHist(mu, Color), mu = slider(62, 74, step=.5),
    Color=picker("blue", "red", initial="blue"))