Jose Claudio Faria
2010-Apr-30 11:20 UTC
[R] Problem: packages TinnR, Hmisc, applications Tinn-R and R version 2.11.0
Hi, First: sorry for my bad English! I have received several emails reporting problems using Tinn-R with the new R version (2.11.0). This email is meant to assist the users. This problem is new and is related with R 2.11.0 and Hmisc package for Windows! After download and install R 2.11.0pat under Linux and Windows, see below my results: a) Under Linux (Open SUSE 11.3) - I found no problem installing, compiling and using these packages: TinnR, Hmisc, R2HTML and svSocket. b) Under Windows (Vista Ultimate) - after to set the file Rprofile.site with the script (generated by Tinn-R, i.e, main menu R/Configure/Permanent (Rprofile.site), see below: ##==============================================================## Tinn-R: necessary packages and functions ## Tinn-R: >= 2.2.0.2 with TinnR package >= 1.0.3 ##==============================================================## Set the URL of the preferred repository, below some examples: options(repos='http://software.rc.fas.harvard.edu/mirrors/R/') # USA #options(repos='http://cran.ma.imperial.ac.uk/') # UK #options(repos='http://brieger.esalq.usp.br/CRAN/') # Brazil library(utils) ## Check necessary packages necessary <- c('TinnR', 'svSocket') installed <- necessary %in% installed.packages()[, 'Package'] if (length(necessary[!installed]) >=1) install.packages(necessary[!installed]) ## Load packages library(TinnR) library(svSocket) ## Uncoment the two lines below if you want Tinn-R to always start R at start-up ## (Observation: check the path of Tinn-R.exe) #options(IDE='C:/Tinn-R/bin/Tinn-R.exe') #trStartIDE() ## Set options options(use.DDE=T) ## Start DDE trDDEInstall() .trPaths <- paste(paste(Sys.getenv('APPDATA'), '\\Tinn-R\\tmp\\', sep=''), c('', 'search.txt', 'objects.txt', 'file.r', 'selection.r', 'block.r', 'lines.r'), sep='') #============================================================== when R was rebooted I received the messages below: IO: #==============================================================R version 2.11.0 Patched (2010-04-26 r51822) Copyright (C) 2010 The R Foundation for Statistical Computing ISBN 3-900051-07-0 R is free software and comes with ABSOLUTELY NO WARRANTY. You are welcome to redistribute it under certain conditions. Type 'license()' or 'licence()' for distribution details. R is a collaborative project with many contributors. Type 'contributors()' for more information and 'citation()' on how to cite R or R packages in publications. Type 'demo()' for some demos, 'help()' for on-line help, or 'help.start()' for an HTML browser interface to help. Type 'q()' to quit R.>#============================================================== Log: #==============================================================Warning: dependency 'Hmisc' is not available also installing the dependencies 'R2HTML', 'svMisc' trying URL 'http://software.rc.fas.harvard.edu/mirrors/R/bin/windows/contrib/2.11/R2HTML_2.0.0.zip' length 464688 bytes (453 Kb) opened URL downloaded 453 Kb trying URL 'http://software.rc.fas.harvard.edu/mirrors/R/bin/windows/contrib/2.11/svMisc_0.9-57.zip' length 134502 bytes (131 Kb) opened URL downloaded 131 Kb trying URL 'http://software.rc.fas.harvard.edu/mirrors/R/bin/windows/contrib/2.11/TinnR_1.0.3.zip' length 37715 bytes (36 Kb) opened URL downloaded 36 Kb trying URL 'http://software.rc.fas.harvard.edu/mirrors/R/bin/windows/contrib/2.11/svSocket_0.9-48.zip' length 59065 bytes (57 Kb) opened URL downloaded 57 Kb Loading required package: tcltk done Loading required package: Hmisc Error: package 'Hmisc' could not be loaded In addition: Warning message: In library(pkg, character.only = TRUE, logical.return = TRUE, lib.loc = lib.loc) : there is no package called 'Hmisc' #============================================================== So, the main problem is related with the package 'Hmisc' under Windows! I closed the R. I did a copy/paste from my previous Hmisc package ('library' of my old R version: R-2.10.0pat) to the folder 'library' of my new R version: R-2.11.0pat. So, I rebooted R newly and below the results: IO: #==============================================================R version 2.11.0 Patched (2010-04-26 r51822) Copyright (C) 2010 The R Foundation for Statistical Computing ISBN 3-900051-07-0 R is free software and comes with ABSOLUTELY NO WARRANTY. You are welcome to redistribute it under certain conditions. Type 'license()' or 'licence()' for distribution details. R is a collaborative project with many contributors. ' for more information and 'citation()' on how to cite R or R packages in publications. Type 'demo()' for some demos, 'help()' for on-line help, or 'help.start()' for an HTML browser interface to help. Type 'q()' to quit R.>#============================================================== Log: #==============================================================Type 'contributors()Loading required package: mvbutils Loading required package: utils Loading required package: tools Loading required package: tcltk done Loading required package: scatterplot3d Loading required package: rgl Loading required package: stats Loading required package: grDevices Loading required package: MASS Loading required package: graphics Attaching package: 'graphics' The following object(s) are masked from 'package:mvbutils': clip Loading required package: Hmisc Loading required package: survival Loading required package: splines Attaching package: 'Hmisc' The following object(s) are masked from 'package:survival': untangle.specials The following object(s) are masked from 'package:mvbutils': Save The following object(s) are masked from 'package:base': format.pval, round.POSIXt, trunc.POSIXt, units Loading required package: R2HTML #============================================================== The resource requirements of Hmisc used by Tinn-R are all working fine: no problem! For while, not perfect, but this is my recommendation! HTH, -- ///\\\///\\\///\\\///\\\///\\\///\\\///\\\///\\\ Jose Claudio Faria Estatistica - prof. Titular UESC/DCET/Brasil joseclaudio.faria at gmail.com ///\\\///\\\///\\\///\\\///\\\///\\\///\\\///\\\
Uwe Ligges
2010-Apr-30 14:19 UTC
[R] Problem: packages TinnR, Hmisc, applications Tinn-R and R version 2.11.0
... but please note that the old Hmisc version does not pass the checks under R-2.11.0. This has been discussed several times on the lists both yesterday and today. Best wishes, Uwe Ligges Am 30.04.2010 13:20, schrieb Jose Claudio Faria:> Hi, > > First: sorry for my bad English! > > I have received several emails reporting problems using Tinn-R with > the new R version (2.11.0). > > This email is meant to assist the users. > > This problem is new and is related with R 2.11.0 and Hmisc package for Windows! > > After download and install R 2.11.0pat under Linux and Windows, see > below my results: > > a) Under Linux (Open SUSE 11.3) - I found no problem installing, compiling and > using these packages: TinnR, Hmisc, R2HTML and svSocket. > > b) Under Windows (Vista Ultimate) - after to set the file Rprofile.site with > the script (generated by Tinn-R, i.e, main menu > R/Configure/Permanent (Rprofile.site), see below: > > ##==============================================================> ## Tinn-R: necessary packages and functions > ## Tinn-R:>= 2.2.0.2 with TinnR package>= 1.0.3 > ##==============================================================> ## Set the URL of the preferred repository, below some examples: > options(repos='http://software.rc.fas.harvard.edu/mirrors/R/') # USA > #options(repos='http://cran.ma.imperial.ac.uk/') # UK > #options(repos='http://brieger.esalq.usp.br/CRAN/') # Brazil > > library(utils) > > ## Check necessary packages > necessary<- c('TinnR', 'svSocket') > installed<- necessary %in% installed.packages()[, 'Package'] > if (length(necessary[!installed])>=1) > install.packages(necessary[!installed]) > > ## Load packages > library(TinnR) > library(svSocket) > > ## Uncoment the two lines below if you want Tinn-R to always start R at start-up > ## (Observation: check the path of Tinn-R.exe) > #options(IDE='C:/Tinn-R/bin/Tinn-R.exe') > #trStartIDE() > > ## Set options > options(use.DDE=T) > > ## Start DDE > trDDEInstall() > > .trPaths<- paste(paste(Sys.getenv('APPDATA'), '\\Tinn-R\\tmp\\', sep=''), > c('', 'search.txt', 'objects.txt', 'file.r', 'selection.r', 'block.r', > 'lines.r'), sep='') > #==============================================================> > when R was rebooted I received the messages below: > > IO: > #==============================================================> R version 2.11.0 Patched (2010-04-26 r51822) > Copyright (C) 2010 The R Foundation for Statistical Computing > ISBN 3-900051-07-0 > > R is free software and comes with ABSOLUTELY NO WARRANTY. > You are welcome to redistribute it under certain conditions. > Type 'license()' or 'licence()' for distribution details. > > R is a collaborative project with many contributors. > Type 'contributors()' for more information and > 'citation()' on how to cite R or R packages in publications. > > Type 'demo()' for some demos, 'help()' for on-line help, or > 'help.start()' for an HTML browser interface to help. > Type 'q()' to quit R. > >> > #==============================================================> > Log: > #==============================================================> Warning: dependency 'Hmisc' is not available > also installing the dependencies 'R2HTML', 'svMisc' > > trying URL 'http://software.rc.fas.harvard.edu/mirrors/R/bin/windows/contrib/2.11/R2HTML_2.0.0.zip' > length 464688 bytes (453 Kb) > opened URL > downloaded 453 Kb > > trying URL 'http://software.rc.fas.harvard.edu/mirrors/R/bin/windows/contrib/2.11/svMisc_0.9-57.zip' > length 134502 bytes (131 Kb) > opened URL > downloaded 131 Kb > > trying URL 'http://software.rc.fas.harvard.edu/mirrors/R/bin/windows/contrib/2.11/TinnR_1.0.3.zip' > length 37715 bytes (36 Kb) > opened URL > downloaded 36 Kb > > trying URL 'http://software.rc.fas.harvard.edu/mirrors/R/bin/windows/contrib/2.11/svSocket_0.9-48.zip' > length 59065 bytes (57 Kb) > opened URL > downloaded 57 Kb > > Loading required package: tcltk > done > Loading required package: Hmisc > Error: package 'Hmisc' could not be loaded > In addition: Warning message: > In library(pkg, character.only = TRUE, logical.return = TRUE, lib.loc > = lib.loc) : > there is no package called 'Hmisc' > #==============================================================> > So, the main problem is related with the package 'Hmisc' under Windows! > > I closed the R. > I did a copy/paste from my previous Hmisc package ('library' of my old > R version: R-2.10.0pat) to the folder 'library' of my new R version: > R-2.11.0pat. > > So, I rebooted R newly and below the results: > > IO: > #==============================================================> R version 2.11.0 Patched (2010-04-26 r51822) > Copyright (C) 2010 The R Foundation for Statistical Computing > ISBN 3-900051-07-0 > > R is free software and comes with ABSOLUTELY NO WARRANTY. > You are welcome to redistribute it under certain conditions. > Type 'license()' or 'licence()' for distribution details. > > R is a collaborative project with many contributors. > ' for more information and > 'citation()' on how to cite R or R packages in publications. > > Type 'demo()' for some demos, 'help()' for on-line help, or > 'help.start()' for an HTML browser interface to help. > Type 'q()' to quit R. > >> > #==============================================================> > Log: > #==============================================================> Type 'contributors()Loading required package: mvbutils > Loading required package: utils > Loading required package: tools > Loading required package: tcltk > done > Loading required package: scatterplot3d > Loading required package: rgl > Loading required package: stats > Loading required package: grDevices > Loading required package: MASS > Loading required package: graphics > > Attaching package: 'graphics' > > The following object(s) are masked from 'package:mvbutils': > > clip > > Loading required package: Hmisc > Loading required package: survival > Loading required package: splines > > Attaching package: 'Hmisc' > > The following object(s) are masked from 'package:survival': > > untangle.specials > > The following object(s) are masked from 'package:mvbutils': > > Save > > The following object(s) are masked from 'package:base': > > format.pval, round.POSIXt, trunc.POSIXt, units > > Loading required package: R2HTML > #==============================================================> > The resource requirements of Hmisc used by Tinn-R are all working > fine: no problem! > For while, not perfect, but this is my recommendation! > > HTH, > -- > ///\\\///\\\///\\\///\\\///\\\///\\\///\\\///\\\ > Jose Claudio Faria > Estatistica - prof. Titular > UESC/DCET/Brasil > joseclaudio.faria at gmail.com > ///\\\///\\\///\\\///\\\///\\\///\\\///\\\///\\\ > > ______________________________________________ > R-help at 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.