I asked the maintainer and he indicated that it might be a dll problem. Has anyone see this problem? I had installed the latest copy of tkrplot. I was trying to use teachingDemos when I first got the error. On 1/18/07, Luke Tierney <luke@stat.uiowa.edu> wrote:> Looks like tcl can't find the dll or something along those lines. As > this is windows you'll have to ask someone who uses that platform > to help figure out why. > > luke > > On Thu, 18 Jan 2007, jim holtman wrote: > > > I was trying to use the teachingDemos package and was getting an error > > trying to load tkrplot. > > > > I downloaded the latest copy and here is what I am getting on the > console. > > You were mentioned as the maintainer on the manual page. Do you know > why > > this error might be occuring? > > > > > > > >> utils:::menuInstallPkgs() > > --- Please select a CRAN mirror for use in this session --- > > trying URL ' > > http://www.stathy.com/cran/bin/windows/contrib/2.4/tkrplot_0.0-16.zip' > > Content type 'application/zip' length 24119 bytes > > opened URL > > downloaded 23Kb > > > > package 'tkrplot' successfully unpacked and MD5 sums checked > > > > The downloaded packages are in > > C:\Documents and Settings\Compaq_Administrator\Local > > Settings\Temp\RtmpqEShrb\downloaded_packages > > updating HTML package descriptions > >> library(tkrplot) > > Loading required package: tcltk > > Loading Tcl/Tk interface ... done > > Error in structure(.External("dotTcl", ..., PACKAGE = "tcltk"), class > > "tclObj") : > > [tcl] could not find interpreter "Rplot". > > Error in library(tkrplot) : .First.lib failed for 'tkrplot' > >> sessionInfo() > > R version 2.4.1 (2006-12-18) > > i386-pc-mingw32 > > > > locale: > > LC_COLLATE=English_United States.1252;LC_CTYPE=English_United > > States.1252;LC_MONETARY=English_United > > States.1252;LC_NUMERIC=C;LC_TIME=English_United States.1252 > > > > attached base packages: > > [1] "tcltk" "stats" "utils" > "datasets" "graphics" "grDevices" > > "methods" "base" > >> > > > > > >-- Jim Holtman Cincinnati, OH +1 513 646 9390 What is the problem you are trying to solve? [[alternative HTML version deleted]]
On 1/18/2007 8:57 PM, jim holtman wrote:> I asked the maintainer and he indicated that it might be a dll problem. Has > anyone see this problem? I had installed the latest copy of tkrplot. I was > trying to use teachingDemos when I first got the error.I just installed tkrplot in R 2.4.1 and it worked fine. I've never seen the error you're reporting. However, I see what looks like a typo that might affect some systems: In the tkrplot .First.lib function, I see> if (is.character(.Platform$r_arch) && .Platform$r_arch != > "") > path <- file.path("libs", .Platform$r_arc, dlname) > else path <- file.path("libs", dlname)On the 3rd line, I think .Platform$r_arc should be .Platform$r_arch. On my system I never execute that line, but if .Platform$r_arch is set on your system, it would likely cause problems. Duncan Murdoch> > On 1/18/07, Luke Tierney <luke at stat.uiowa.edu> wrote: > >> Looks like tcl can't find the dll or something along those lines. As >> this is windows you'll have to ask someone who uses that platform >> to help figure out why. >> >> luke >> >> On Thu, 18 Jan 2007, jim holtman wrote: >> >>> I was trying to use the teachingDemos package and was getting an error >>> trying to load tkrplot. >>> >>> I downloaded the latest copy and here is what I am getting on the >> console. >>> You were mentioned as the maintainer on the manual page. Do you know >> why >>> this error might be occuring? >>> >>> >>> >>>> utils:::menuInstallPkgs() >>> --- Please select a CRAN mirror for use in this session --- >>> trying URL ' >>> http://www.stathy.com/cran/bin/windows/contrib/2.4/tkrplot_0.0-16.zip' >>> Content type 'application/zip' length 24119 bytes >>> opened URL >>> downloaded 23Kb >>> >>> package 'tkrplot' successfully unpacked and MD5 sums checked >>> >>> The downloaded packages are in >>> C:\Documents and Settings\Compaq_Administrator\Local >>> Settings\Temp\RtmpqEShrb\downloaded_packages >>> updating HTML package descriptions >>>> library(tkrplot) >>> Loading required package: tcltk >>> Loading Tcl/Tk interface ... done >>> Error in structure(.External("dotTcl", ..., PACKAGE = "tcltk"), class >>> "tclObj") : >>> [tcl] could not find interpreter "Rplot". >>> Error in library(tkrplot) : .First.lib failed for 'tkrplot' >>>> sessionInfo() >>> R version 2.4.1 (2006-12-18) >>> i386-pc-mingw32 >>> >>> locale: >>> LC_COLLATE=English_United States.1252;LC_CTYPE=English_United >>> States.1252;LC_MONETARY=English_United >>> States.1252;LC_NUMERIC=C;LC_TIME=English_United States.1252 >>> >>> attached base packages: >>> [1] "tcltk" "stats" "utils" >> "datasets" "graphics" "grDevices" >>> "methods" "base" >>> >>> > > >
As it happens I used TeachingDemos/tkrplot on Windows (R 2.4.1) with a class example yesterday. It looks to me as if the issue is in the R installation. Remember that Tcl support is optional when R is installed, and can be influenced by environment variables. So my first check would be that the tcltk demos all work. On Thu, 18 Jan 2007, jim holtman wrote:> I asked the maintainer and he indicated that it might be a dll problem. Has > anyone see this problem? I had installed the latest copy of tkrplot. I was > trying to use teachingDemos when I first got the error. > > On 1/18/07, Luke Tierney <luke at stat.uiowa.edu> wrote: > >> Looks like tcl can't find the dll or something along those lines. As >> this is windows you'll have to ask someone who uses that platform >> to help figure out why. >> >> luke >> >> On Thu, 18 Jan 2007, jim holtman wrote: >> >>> I was trying to use the teachingDemos package and was getting an error >>> trying to load tkrplot. >>> >>> I downloaded the latest copy and here is what I am getting on the >> console. >>> You were mentioned as the maintainer on the manual page. Do you know >> why >>> this error might be occuring? >>> >>> >>> >>>> utils:::menuInstallPkgs() >>> --- Please select a CRAN mirror for use in this session --- >>> trying URL ' >>> http://www.stathy.com/cran/bin/windows/contrib/2.4/tkrplot_0.0-16.zip' >>> Content type 'application/zip' length 24119 bytes >>> opened URL >>> downloaded 23Kb >>> >>> package 'tkrplot' successfully unpacked and MD5 sums checked >>> >>> The downloaded packages are in >>> C:\Documents and Settings\Compaq_Administrator\Local >>> Settings\Temp\RtmpqEShrb\downloaded_packages >>> updating HTML package descriptions >>>> library(tkrplot) >>> Loading required package: tcltk >>> Loading Tcl/Tk interface ... done >>> Error in structure(.External("dotTcl", ..., PACKAGE = "tcltk"), class >>> "tclObj") : >>> [tcl] could not find interpreter "Rplot". >>> Error in library(tkrplot) : .First.lib failed for 'tkrplot' >>>> sessionInfo() >>> R version 2.4.1 (2006-12-18) >>> i386-pc-mingw32 >>> >>> locale: >>> LC_COLLATE=English_United States.1252;LC_CTYPE=English_United >>> States.1252;LC_MONETARY=English_United >>> States.1252;LC_NUMERIC=C;LC_TIME=English_United States.1252 >>> >>> attached base packages: >>> [1] "tcltk" "stats" "utils" >> "datasets" "graphics" "grDevices" >>> "methods" "base" >>>> >>> >>> >>> > > > >-- Brian D. Ripley, ripley at stats.ox.ac.uk Professor of Applied Statistics, http://www.stats.ox.ac.uk/~ripley/ University of Oxford, Tel: +44 1865 272861 (self) 1 South Parks Road, +44 1865 272866 (PA) Oxford OX1 3TG, UK Fax: +44 1865 272595
> -----Original Message----- > From: r-help-bounces at stat.math.ethz.ch > [mailto:r-help-bounces at stat.math.ethz.ch] On Behalf Of Prof > Brian Ripley > Sent: Thursday, January 18, 2007 11:05 PM > To: jim holtman > Cc: R-help at stat.math.ethz.ch > Subject: Re: [R] Problem with loading tkrplot > > As it happens I used TeachingDemos/tkrplot on Windows (R > 2.4.1) with a class example yesterday.Wow, first I make it into the fortunes package. Now I find out that Prof. Ripley is using my package in the classroom. I am starting to feel like a contributing member of society. As a side note, I just realized that this spring marks 20 years since I first used a port of the S language, I'm starting to feel old. -- Gregory (Greg) L. Snow Ph.D. Statistical Data Center Intermountain Healthcare greg.snow at intermountainmail.org (801) 408-8111