Re: [R] Still have problems with tcltk in R 64 bit
I was pretty sure to have installed tcltk files for 64 bit from the installer, but to be sure ... - I removed previously created Environment variables (MY_TCLTK) - I reinstalled R one more time ... this time with the "full installation" option and ... it does not work (still works with R 32bit) ! - I also tried to define directly the path to the tcl version included with R ... as the code you provided does ... thus MY_TCLTK = C:\Program Files\R\R-2.13.0\Tcl\bin64 ... still the same error in R 64 bit, and if I want to load tcltk in R 32, it gives me the following error (normal ... it tried to load a 64 bit application in a 32 bit environment). Loading Tcl/Tk interface ...Error : .onLoad failed in loadNamespace() for 'tcltk', details: call: inDL(x, as.logical(local), as.logical(now), ...) error: unable to load shared object 'C:/Program Files/R/R-2.13.0/library/tcltk/libs/i386/tcltk.dll': LoadLibrary failure: %1 is not a valid Win32 application. Error: package/namespace load failed for 'tcltk' I believe that the problem may come from the tcltk.dll file but I do not understand how it can be broken each time when I installed other versions ... Arnaud 2011/6/15 Uwe Ligges : > Well, the R code in package tcltk for startup under Windows is, as you could > have found out yourself easily: > > .onLoad <- function(lib, pkg) > { > packageStartupMessage("Loading Tcl/Tk interface ...", > domain = "R-tcltk", appendLF = FALSE) > if(!nzchar(tclbin <- Sys.getenv("MY_TCLTK"))) { > tclbin <- file.path(R.home(), "Tcl", > if(.Machine$sizeof.pointer == 8) "bin64" else > "bin") > if(!file.exists(tclbin)) > stop("Tcl/Tk support files were not installed", call.=FALSE) > if(.Machine$sizeof.pointer == 8) { > lib64 <- gsub("\\", "/", file.path(R.home(), "Tcl", "lib64"), > fixed=TRUE) > Sys.setenv(TCLLIBPATH = lib64) > } > } > library.dynam("tcltk", pkg, lib, DLLpath = tclbin) > .C("tcltk_start", PACKAGE="tcltk") > addTclPath(system.file("exec", package = "tcltk")) > packageStartupMessage(" ", "done", domain = "R-tcltk") > invisible() > } > > > This tells us that if you do not have "MY_TCLTK" defined on startup of R, > you probably forgot to select the tcltk files for 64 bit from the installer > when installing your version of R. > > Uwe Ligges > > > > > On 15.06.2011 14:28, Arnaud Mosnier wrote: >> >> I agree that this is a really outdated source but I did not find the >> way to tell R using correctly the tcl version included (at least for >> the 64 bit version). >> If I remove the environment variables, things work for R 32 bit (it >> uses the tcl version included), but it does not work in R 64 bit. >> >> Where are the configuration files used to define the path to each tcl >> version ? >> >> Arnaud >> >> 2011/6/14 Uwe Ligges: >>> >>> >>> On 14.06.2011 22:01, Arnaud Mosnier wrote: I achieve to make tcltk work on R 64 installing Active tcltk8.5 64bit version then setting windows environment variables as in http://www.sciviews.org/_rgui/tcltk/InstallRTclTk.html. >>> >>> Don't read outdated sources but the manuals. >>> >>> The R binary distribution comes with tcltk under Windows (in >>> ${R_HOME}/tcl) >>> for both 32-bit and 64-bit and will user a different tcl if you set >>> environment variables. >>> >>> Hence the easiest thing is just to tell R not to use your otehrwise set >>> environment variabes and use its own tcl version. >>> >>> Uwe Ligges >>> >>> >>> But now, it uses only this 64 bit version and thus do not work anymore in R 32 bit ! In my case, it solves my problem as I will probably use only R 64bit but I do not like to end with an half solution. Arnaud 2011/6/14 Peter Langfelder: > > On Tue, Jun 14, 2011 at 12:47 PM, Adrienne Wootten > wrote: >> >> Taking a quick look for it, it seems that they have replaced it with >> tcltk2. I just did the installation with the same version in windows >> and it auto loaded the tcltk package and I never installed that >> package to begin with. I would try it with tcltk2 and see if you get >> the package to install appropriately. I'm not sure why tcltk isn't on >> CRAN anymore, it makes no sense not to have both tcltk and tcltk2, but >> here's hoping this helps you out. >> >> A > > FWIF, tcltk still exists but is now part of the standard R > distribution ("core packages" is the term I think?) and as such is > installed automatically when you install R. Therefore it is not > available from CRAN. > > Peter > __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, min
Re: [R] Still have problems with tcltk in R 64 bit
Well, the R code in package tcltk for startup under Windows is, as you could have found out yourself easily: .onLoad <- function(lib, pkg) { packageStartupMessage("Loading Tcl/Tk interface ...", domain = "R-tcltk", appendLF = FALSE) if(!nzchar(tclbin <- Sys.getenv("MY_TCLTK"))) { tclbin <- file.path(R.home(), "Tcl", if(.Machine$sizeof.pointer == 8) "bin64" else "bin") if(!file.exists(tclbin)) stop("Tcl/Tk support files were not installed", call.=FALSE) if(.Machine$sizeof.pointer == 8) { lib64 <- gsub("\\", "/", file.path(R.home(), "Tcl", "lib64"), fixed=TRUE) Sys.setenv(TCLLIBPATH = lib64) } } library.dynam("tcltk", pkg, lib, DLLpath = tclbin) .C("tcltk_start", PACKAGE="tcltk") addTclPath(system.file("exec", package = "tcltk")) packageStartupMessage(" ", "done", domain = "R-tcltk") invisible() } This tells us that if you do not have "MY_TCLTK" defined on startup of R, you probably forgot to select the tcltk files for 64 bit from the installer when installing your version of R. Uwe Ligges On 15.06.2011 14:28, Arnaud Mosnier wrote: I agree that this is a really outdated source but I did not find the way to tell R using correctly the tcl version included (at least for the 64 bit version). If I remove the environment variables, things work for R 32 bit (it uses the tcl version included), but it does not work in R 64 bit. Where are the configuration files used to define the path to each tcl version ? Arnaud 2011/6/14 Uwe Ligges: On 14.06.2011 22:01, Arnaud Mosnier wrote: I achieve to make tcltk work on R 64 installing Active tcltk8.5 64bit version then setting windows environment variables as in http://www.sciviews.org/_rgui/tcltk/InstallRTclTk.html. Don't read outdated sources but the manuals. The R binary distribution comes with tcltk under Windows (in ${R_HOME}/tcl) for both 32-bit and 64-bit and will user a different tcl if you set environment variables. Hence the easiest thing is just to tell R not to use your otehrwise set environment variabes and use its own tcl version. Uwe Ligges But now, it uses only this 64 bit version and thus do not work anymore in R 32 bit ! In my case, it solves my problem as I will probably use only R 64bit but I do not like to end with an half solution. Arnaud 2011/6/14 Peter Langfelder: On Tue, Jun 14, 2011 at 12:47 PM, Adrienne Wootten wrote: Taking a quick look for it, it seems that they have replaced it with tcltk2. I just did the installation with the same version in windows and it auto loaded the tcltk package and I never installed that package to begin with. I would try it with tcltk2 and see if you get the package to install appropriately. I'm not sure why tcltk isn't on CRAN anymore, it makes no sense not to have both tcltk and tcltk2, but here's hoping this helps you out. A FWIF, tcltk still exists but is now part of the standard R distribution ("core packages" is the term I think?) and as such is installed automatically when you install R. Therefore it is not available from CRAN. Peter __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code. __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code. __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.
Re: [R] Still have problems with tcltk in R 64 bit
I agree that this is a really outdated source but I did not find the way to tell R using correctly the tcl version included (at least for the 64 bit version). If I remove the environment variables, things work for R 32 bit (it uses the tcl version included), but it does not work in R 64 bit. Where are the configuration files used to define the path to each tcl version ? Arnaud 2011/6/14 Uwe Ligges : > > > On 14.06.2011 22:01, Arnaud Mosnier wrote: >> >> I achieve to make tcltk work on R 64 installing Active tcltk8.5 64bit >> version then setting windows environment variables as in >> http://www.sciviews.org/_rgui/tcltk/InstallRTclTk.html. > > Don't read outdated sources but the manuals. > > The R binary distribution comes with tcltk under Windows (in ${R_HOME}/tcl) > for both 32-bit and 64-bit and will user a different tcl if you set > environment variables. > > Hence the easiest thing is just to tell R not to use your otehrwise set > environment variabes and use its own tcl version. > > Uwe Ligges > > > >> But now, it uses only this 64 bit version and thus do not work anymore >> in R 32 bit ! >> >> In my case, it solves my problem as I will probably use only R 64bit >> but I do not like to end with an half solution. >> >> Arnaud >> >> 2011/6/14 Peter Langfelder: >>> >>> On Tue, Jun 14, 2011 at 12:47 PM, Adrienne Wootten >>> wrote: Taking a quick look for it, it seems that they have replaced it with tcltk2. I just did the installation with the same version in windows and it auto loaded the tcltk package and I never installed that package to begin with. I would try it with tcltk2 and see if you get the package to install appropriately. I'm not sure why tcltk isn't on CRAN anymore, it makes no sense not to have both tcltk and tcltk2, but here's hoping this helps you out. A >>> >>> FWIF, tcltk still exists but is now part of the standard R >>> distribution ("core packages" is the term I think?) and as such is >>> installed automatically when you install R. Therefore it is not >>> available from CRAN. >>> >>> Peter >>> >> >> __ >> R-help@r-project.org mailing list >> https://stat.ethz.ch/mailman/listinfo/r-help >> PLEASE do read the posting guide >> http://www.R-project.org/posting-guide.html >> and provide commented, minimal, self-contained, reproducible code. > __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.
Re: [R] Still have problems with tcltk in R 64 bit
On 14.06.2011 22:01, Arnaud Mosnier wrote: I achieve to make tcltk work on R 64 installing Active tcltk8.5 64bit version then setting windows environment variables as in http://www.sciviews.org/_rgui/tcltk/InstallRTclTk.html. Don't read outdated sources but the manuals. The R binary distribution comes with tcltk under Windows (in ${R_HOME}/tcl) for both 32-bit and 64-bit and will user a different tcl if you set environment variables. Hence the easiest thing is just to tell R not to use your otehrwise set environment variabes and use its own tcl version. Uwe Ligges But now, it uses only this 64 bit version and thus do not work anymore in R 32 bit ! In my case, it solves my problem as I will probably use only R 64bit but I do not like to end with an half solution. Arnaud 2011/6/14 Peter Langfelder: On Tue, Jun 14, 2011 at 12:47 PM, Adrienne Wootten wrote: Taking a quick look for it, it seems that they have replaced it with tcltk2. I just did the installation with the same version in windows and it auto loaded the tcltk package and I never installed that package to begin with. I would try it with tcltk2 and see if you get the package to install appropriately. I'm not sure why tcltk isn't on CRAN anymore, it makes no sense not to have both tcltk and tcltk2, but here's hoping this helps you out. A FWIF, tcltk still exists but is now part of the standard R distribution ("core packages" is the term I think?) and as such is installed automatically when you install R. Therefore it is not available from CRAN. Peter __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code. __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.
Re: [R] Still have problems with tcltk in R 64 bit
I achieve to make tcltk work on R 64 installing Active tcltk8.5 64bit version then setting windows environment variables as in http://www.sciviews.org/_rgui/tcltk/InstallRTclTk.html. But now, it uses only this 64 bit version and thus do not work anymore in R 32 bit ! In my case, it solves my problem as I will probably use only R 64bit but I do not like to end with an half solution. Arnaud 2011/6/14 Peter Langfelder : > On Tue, Jun 14, 2011 at 12:47 PM, Adrienne Wootten wrote: >> Taking a quick look for it, it seems that they have replaced it with >> tcltk2. I just did the installation with the same version in windows >> and it auto loaded the tcltk package and I never installed that >> package to begin with. I would try it with tcltk2 and see if you get >> the package to install appropriately. I'm not sure why tcltk isn't on >> CRAN anymore, it makes no sense not to have both tcltk and tcltk2, but >> here's hoping this helps you out. >> >> A > > FWIF, tcltk still exists but is now part of the standard R > distribution ("core packages" is the term I think?) and as such is > installed automatically when you install R. Therefore it is not > available from CRAN. > > Peter > __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.
Re: [R] Still have problems with tcltk in R 64 bit
On Tue, Jun 14, 2011 at 12:47 PM, Adrienne Wootten wrote: > Taking a quick look for it, it seems that they have replaced it with > tcltk2. I just did the installation with the same version in windows > and it auto loaded the tcltk package and I never installed that > package to begin with. I would try it with tcltk2 and see if you get > the package to install appropriately. I'm not sure why tcltk isn't on > CRAN anymore, it makes no sense not to have both tcltk and tcltk2, but > here's hoping this helps you out. > > A FWIF, tcltk still exists but is now part of the standard R distribution ("core packages" is the term I think?) and as such is installed automatically when you install R. Therefore it is not available from CRAN. Peter __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.
Re: [R] Still have problems with tcltk in R 64 bit
Taking a quick look for it, it seems that they have replaced it with tcltk2. I just did the installation with the same version in windows and it auto loaded the tcltk package and I never installed that package to begin with. I would try it with tcltk2 and see if you get the package to install appropriately. I'm not sure why tcltk isn't on CRAN anymore, it makes no sense not to have both tcltk and tcltk2, but here's hoping this helps you out. A On Tue, Jun 14, 2011 at 3:35 PM, Arnaud Mosnier wrote: > Thanks for your help, but I can not reinstall tcltk with this command > line because "tcltk" is not available on CRAN. > I have tested it (removed tcltk folder from the R/library then tried > to reinstall it) > > You will have an error message... > > Warning message: > In getDependencies(pkgs, dependencies, available, lib) : > package ‘tcltk’ is not available (for R version 2.13.0) > > Arnaud > > > 2011/6/14 Adrienne Wootten : >> First thing is to delete the old package from your system, you can do >> this simply by deleting the files associated with the package. >> >> Second, you can re-install the package using this command in R >> >> install.packages("tcltk",dependencies=TRUE) >> >> That should do the trick, but you will probably want to delete the old >> package first so that R doesn't continue to refer to the package that >> doesn't work. >> >> Adrienne >> >> On Tue, Jun 14, 2011 at 1:39 PM, Arnaud Mosnier wrote: >>> I agree but how to reinstall the tcltk package ? >>> You can not download it from CRAN ! >>> >>> >>> >>> 2011/6/14 Adrienne Wootten : Arnaud, I've had a similar problem with several packages in R 2.13.0 recently, which was more caused because the package installation failed in the new version. Judging from the error messages you have up here, I'd guess that it's a similar problem surrounding the package installation, specifically that something happened which may have damaged the .dll file. So to answer your last question, I'd try re-installing the Tcl/Tk package and see if that fixes the problem. Adrienne -- Adrienne Wootten Graduate Research Assistant State Climate Office of North Carolina Department of Marine, Earth and Atmospheric Sciences North Carolina State University On Tue, Jun 14, 2011 at 11:46 AM, Arnaud Mosnier wrote: > Dear R users, > > > Since a long time now, I have the following error when I want to load > the tcltk library in R 64 bit. > > > Loading Tcl/Tk interface ...Error : .onLoad failed in loadNamespace() > for 'tcltk', details: > call: inDL(x, as.logical(local), as.logical(now), ...) > error: unable to load shared object 'C:/Program > Files/R/R-2.13.0/library/tcltk/libs/x64/tcltk.dll': > LoadLibrary failure: This application has failed to start because > the application configuration is incorrect. Reinstalling the > application may fix this problem. > > Error: package/namespace load failed for 'tcltk' > > > sessionInfo() gives > > R version 2.13.0 (2011-04-13) > Platform: x86_64-pc-mingw32/x64 (64-bit) > > locale: > [1] LC_COLLATE=English_Canada.1252 LC_CTYPE=English_Canada.1252 > [3] LC_MONETARY=English_Canada.1252 LC_NUMERIC=C > [5] LC_TIME=English_Canada.1252 > > attached base packages: > [1] stats graphics grDevices utils datasets methods base > > loaded via a namespace (and not attached): > [1] tools_2.13.0 > > > The problem does not occur with the 32 bit version of R, thus, it is > probably linked to the 64 version of Tcltk... > > I already tried: > - to uninstall then reinstall R (changing version too...) > - install ActiveTcl8.5.9.2.294317-win32-x86_64-threaded.exe (I also > tried installing previous version of ActiveTcl) > > ... without results ! > > "Reinstalling the application may fix this problem" ... I agree, but > what should I reinstall ? > > Any suggestions ? > > Arnaud > > __ > R-help@r-project.org mailing list > https://stat.ethz.ch/mailman/listinfo/r-help > PLEASE do read the posting guide > http://www.R-project.org/posting-guide.html > and provide commented, minimal, self-contained, reproducible code. > >>> >> >> >> >> -- >> Adrienne Wootten >> Graduate Research Assistant >> State Climate Office of North Carolina >> Department of Marine, Earth and Atmospheric Sciences >> North Carolina State University >> > -- Adrienne Wootten Graduate Research Assistant State Climate Office of North Carolina Department of Marine, Earth and Atmospheric Sciences North Carolina State University __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read t
Re: [R] Still have problems with tcltk in R 64 bit
Arnaud, I've had a similar problem with several packages in R 2.13.0 recently, which was more caused because the package installation failed in the new version. Judging from the error messages you have up here, I'd guess that it's a similar problem surrounding the package installation, specifically that something happened which may have damaged the .dll file. So to answer your last question, I'd try re-installing the Tcl/Tk package and see if that fixes the problem. Adrienne -- Adrienne Wootten Graduate Research Assistant State Climate Office of North Carolina Department of Marine, Earth and Atmospheric Sciences North Carolina State University On Tue, Jun 14, 2011 at 11:46 AM, Arnaud Mosnier wrote: > Dear R users, > > > Since a long time now, I have the following error when I want to load > the tcltk library in R 64 bit. > > > Loading Tcl/Tk interface ...Error : .onLoad failed in loadNamespace() > for 'tcltk', details: > call: inDL(x, as.logical(local), as.logical(now), ...) > error: unable to load shared object 'C:/Program > Files/R/R-2.13.0/library/tcltk/libs/x64/tcltk.dll': > LoadLibrary failure: This application has failed to start because > the application configuration is incorrect. Reinstalling the > application may fix this problem. > > Error: package/namespace load failed for 'tcltk' > > > sessionInfo() gives > > R version 2.13.0 (2011-04-13) > Platform: x86_64-pc-mingw32/x64 (64-bit) > > locale: > [1] LC_COLLATE=English_Canada.1252 LC_CTYPE=English_Canada.1252 > [3] LC_MONETARY=English_Canada.1252 LC_NUMERIC=C > [5] LC_TIME=English_Canada.1252 > > attached base packages: > [1] stats graphics grDevices utils datasets methods base > > loaded via a namespace (and not attached): > [1] tools_2.13.0 > > > The problem does not occur with the 32 bit version of R, thus, it is > probably linked to the 64 version of Tcltk... > > I already tried: > - to uninstall then reinstall R (changing version too...) > - install ActiveTcl8.5.9.2.294317-win32-x86_64-threaded.exe (I also > tried installing previous version of ActiveTcl) > > ... without results ! > > "Reinstalling the application may fix this problem" ... I agree, but > what should I reinstall ? > > Any suggestions ? > > Arnaud > > __ > R-help@r-project.org mailing list > https://stat.ethz.ch/mailman/listinfo/r-help > PLEASE do read the posting guide http://www.R-project.org/posting-guide.html > and provide commented, minimal, self-contained, reproducible code. > __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.
[R] Still have problems with tcltk in R 64 bit
Dear R users, Since a long time now, I have the following error when I want to load the tcltk library in R 64 bit. Loading Tcl/Tk interface ...Error : .onLoad failed in loadNamespace() for 'tcltk', details: call: inDL(x, as.logical(local), as.logical(now), ...) error: unable to load shared object 'C:/Program Files/R/R-2.13.0/library/tcltk/libs/x64/tcltk.dll': LoadLibrary failure: This application has failed to start because the application configuration is incorrect. Reinstalling the application may fix this problem. Error: package/namespace load failed for 'tcltk' sessionInfo() gives R version 2.13.0 (2011-04-13) Platform: x86_64-pc-mingw32/x64 (64-bit) locale: [1] LC_COLLATE=English_Canada.1252 LC_CTYPE=English_Canada.1252 [3] LC_MONETARY=English_Canada.1252 LC_NUMERIC=C [5] LC_TIME=English_Canada.1252 attached base packages: [1] stats graphics grDevices utils datasets methods base loaded via a namespace (and not attached): [1] tools_2.13.0 The problem does not occur with the 32 bit version of R, thus, it is probably linked to the 64 version of Tcltk... I already tried: - to uninstall then reinstall R (changing version too...) - install ActiveTcl8.5.9.2.294317-win32-x86_64-threaded.exe (I also tried installing previous version of ActiveTcl) ... without results ! "Reinstalling the application may fix this problem" ... I agree, but what should I reinstall ? Any suggestions ? Arnaud __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.