当我从rms包运行“validate”时,会出现TCLK错误

时间:2022-10-04 14:56:59

I'm running Rstudio 0.98.501 with R 3.02 on OSX Mavericks 10.9.1. I have XQuarts installed. I have loaded these packages:

我正在运行Rstudio 0.98.501和r3.02在OSX Mavericks 10.9.1。我安装了XQuarts。我已经加载了这些包:

library(foreign) library(Hmisc) library("ggplot2") library(gdata) library(MASS) library(rms)

图书馆(外国)图书馆(Hmisc)图书馆(“ggplot2”)图书馆(gdata)图书馆(大众)图书馆

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 <验证(model1,b = 50)< p>

I get this error:

我得到这个错误:

Error in structure(.External(.C_dotTclObjv, objv), class = "tclObj") [tcl] invalid command name "toplevel".

(.External(错误结构。C_dotTclObjv, objv), class = "tclObj") [tcl]无效命令名"toplevel"。

Does anyone have any tips?

有人有什么建议吗?

1 个解决方案

#1


1  

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/installationnote。我意识到我的系统上有一个残余的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/local/local/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

drwxr-xr-x 12根轮408 24 / 10月21日02:24 /usr/本地drwxrwxr-x 61根轮2074 / 10月22日22:43 /usr - lib -xr-xr-x 1根轮4820229 / 2008年10月21 /usr/ local/local/libtcl8.5。dylib -r-xr-xr-x 1根轮1419604 3月30日/usr/local/ libtcl8.6。dylib -rw-r- r- 1根轮11072 /usr/local/ libtclstub8.5。a -rwxr-xr- xr-x 1根轮,2013年3月30日/usr/local/lib/libtclstub8.6.a。

Removing the old 8.5 files fixed the problem for me.

删除旧的8.5文件为我解决了这个问题。

HTH

HTH

#1


1  

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/installationnote。我意识到我的系统上有一个残余的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/local/local/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

drwxr-xr-x 12根轮408 24 / 10月21日02:24 /usr/本地drwxrwxr-x 61根轮2074 / 10月22日22:43 /usr - lib -xr-xr-x 1根轮4820229 / 2008年10月21 /usr/ local/local/libtcl8.5。dylib -r-xr-xr-x 1根轮1419604 3月30日/usr/local/ libtcl8.6。dylib -rw-r- r- 1根轮11072 /usr/local/ libtclstub8.5。a -rwxr-xr- xr-x 1根轮,2013年3月30日/usr/local/lib/libtclstub8.6.a。

Removing the old 8.5 files fixed the problem for me.

删除旧的8.5文件为我解决了这个问题。

HTH

HTH