[英]TCLK error when I run 'validate' from the rms package
I'm running Rstudio 0.98.501 with R 3.02 on OSX Mavericks 10.9.1. 我在OSX Mavericks 10.9.1上运行Rstudio 0.98.501和R 3.02。 I have XQuarts installed. 我已经安装了XQuarts。 I have loaded these packages: 我已经加载了这些软件包:
library(foreign) library(Hmisc) library("ggplot2") library(gdata) library(MASS) library(rms) 库(外国)库(Hmisc)库(“ ggplot2”)库(gdata)库(MASS)库(rms)
Then I do this I do this: model1 <- lrm(Y~xvars, data=devset, x=T, y=T) 然后我执行以下操作:model1 <-lrm(Y〜xvars,data = devset,x = T,y = T)
val.model1 <-validate(model1, B=50) val.model1 <-validate(model1,B = 50)
I get this error: 我收到此错误:
Error in structure(.External(.C_dotTclObjv, objv), class = "tclObj") [tcl] invalid command name "toplevel". 结构错误(.External(.C_dotTclObjv,objv),类=“ tclObj”)[tcl]无效的命令名“ toplevel”。
Does anyone have any tips? 有人有提示吗?
Hej! HEJ!
I had the same issue and when running the following command in R - as suggested there: http://socserv.socsci.mcmaster.ca/jfox/Misc/Rcmdr/installation-notes.html - I realised that there was a remnant tcl/tk 8.5 installation on my system. 我有同样的问题,并且在R中运行以下命令时-如此处所建议: http : //socserv.socsci.mcmaster.ca/jfox/Misc/Rcmdr/installation-notes.html-我意识到有一个残留的tcl / tk 8.5安装在我的系统上。
system("ls -ld /usr/local /usr/local/lib /usr/local/lib/libtcl*") 系统(“ ls -ld / usr / local / usr / local / lib / usr / local / lib / libtcl *”)
drwxr-xr-x 12 root wheel 408 24 Oct 02:21 /usr/local drwxrwxr-x 61 root wheel 2074 30 Oct 22:43 /usr/local/lib -r-xr-xr-x 1 root wheel 4820229 21 Oct 2008 /usr/local/lib/libtcl8.5.dylib -r-xr-xr-x 1 root wheel 1419604 30 Mar 2013 /usr/local/lib/libtcl8.6.dylib -rw-r--r-- 1 root wheel 11072 21 Oct 2008 /usr/local/lib/libtclstub8.5.a -rwxr-xr-x 1 root wheel 4824 30 Mar 2013 /usr/local/lib/libtclstub8.6.a
Removing the old 8.5 files fixed the problem for me. 删除旧的8.5文件对我来说解决了这个问题。
HTH HTH
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.