Re: [Rd] localeToCharset error for Thai locale (PR#7799)
Please try R-patched, where this is already fixed. On Wed, 20 Apr 2005 [EMAIL PROTECTED] wrote: > Full_Name: Hutcha Sriplung > Version: 2.1.0 > OS: windows > Submission from: (NULL) (202.12.74.9) > > > In R-2.1.0, I found that 'example' function does not work properly and report > an > error message as shown below on a Windows machine (running r-devel release) > but > not on Linux. > >> example(attach) > Error in switch(x[2], "1250" = return("ISO 8859-2"), "1251" = > return("KOI8-U"), > : argument is missing, with no default > > I tracked the source codes and finally found minor mistakes with Thai language > management on Windows platform in 'localeToCharset' function. > > file: /R-2.1.0/src/library/utils/iconv.R > line: 50 > if (en %in% "th") <<-- Should be "tg"-tajik??? >return("KOI8-T") > > "th" is for Thai (TIS-620; already defined on line 48-49). > > line: 53-56 > "874" = return("TIS 620") <<-- Should be added??? > A default return should also be stated??? > > Note: >> Sys.getlocale("LC_CTYPE") > [1] "Thai_Thailand.874" > > 'example' works fine on a Linux machine. > > __ > R-devel@stat.math.ethz.ch mailing list > https://stat.ethz.ch/mailman/listinfo/r-devel > > -- Brian D. Ripley, [EMAIL PROTECTED] 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, UKFax: +44 1865 272595 __ R-devel@stat.math.ethz.ch mailing list https://stat.ethz.ch/mailman/listinfo/r-devel
[Rd] localeToCharset error for Thai locale (PR#7799)
Full_Name: Hutcha Sriplung Version: 2.1.0 OS: windows Submission from: (NULL) (202.12.74.9) In R-2.1.0, I found that 'example' function does not work properly and report an error message as shown below on a Windows machine (running r-devel release) but not on Linux. > example(attach) Error in switch(x[2], "1250" = return("ISO 8859-2"), "1251" = return("KOI8-U"), : argument is missing, with no default I tracked the source codes and finally found minor mistakes with Thai language management on Windows platform in 'localeToCharset' function. file: /R-2.1.0/src/library/utils/iconv.R line: 50 if (en %in% "th") <<-- Should be "tg"-tajik??? return("KOI8-T") "th" is for Thai (TIS-620; already defined on line 48-49). line: 53-56 "874" = return("TIS 620") <<-- Should be added??? A default return should also be stated??? Note: > Sys.getlocale("LC_CTYPE") [1] "Thai_Thailand.874" 'example' works fine on a Linux machine. __ R-devel@stat.math.ethz.ch mailing list https://stat.ethz.ch/mailman/listinfo/r-devel
[Rd] R-2.1.0 compilation with Intel icc and ifort
Guys, I'm using a Linux PC (Pentium IV, Mandrake 10.1) and I've just tried to compile the new R-2.1.0 release with both gcc/g77 (3.4.1) and icc/ifort (8.1). Of course everything went fine with the GNU compilers. After checking the archives of the mailing list I tried compiling with the Intel compilers using the following options: CFLAGS = '-O2 -mp -prec_div' CXXFLAGS = '-O2 -mp -prec_div' FFLAGS = '-C90 -w90 -w95 -mp -prec_div' CPIPCFLAGS = -shared CXXPIPCFLAGS = -shared FPIPCFLAGS = -shared SHLIB_LDFLAGS = -shared SHLIB_CXXLDFLAGS = -shared --with-blas = '-lmkl -lguide -lpthread' The compilation went fine (just a few warnings). There was apparently a single problem when I ran "make check". It was in: d-p-q-r-tests.R at line 469: All.eq(dpois( 10, 2e-308, log=TRUE), -7100.13502718914) which returned -Inf with the Intel compiled version. I don't think it's a big deal but I'd like to know if you have ideas and/or suggestions. Thanks, Christophe. -- A Master Carpenter has many tools and is expert with most of them.If you only know how to use a hammer, every problem starts to look like a nail. Stay away from that trap. Richard B Johnson. -- Christophe Pouzat Laboratoire de Physiologie Cerebrale CNRS UMR 8118 UFR biomedicale de l'Universite Paris V 45, rue des Saints Peres 75006 PARIS France tel: +33 (0)1 42 86 38 28 fax: +33 (0)1 42 86 38 30 web: www.biomedicale.univ-paris5.fr/physcerv/C_Pouzat.html __ R-devel@stat.math.ethz.ch mailing list https://stat.ethz.ch/mailman/listinfo/r-devel
Re: [Rd] Re: [R] pl/R and MacOS X using R binary
On 19/apr/05, at 16:40, Joe Conway wrote: Sean Davis wrote: On Apr 19, 2005, at 8:56 AM, Prof Brian Ripley wrote: Please do consult the posting guide as to the right place. (I've moved this to R-devel and included Joe Conway. Joe: perhaps you could make you email address more readily available in the PL/R pages.) Yes, I'll do that. Sorry for the confusion. Actually, Joe has been quite helpful in this regard and the question has come up on his pl/R email list before, but without resolution, as far as I could tell (but again, I could be sadly mistaken). I thought that posting to r-help (with the caveat that I was perhaps off-topic) would clarify things for me a bit. It has done just that and I really appreciate your willingness to answer the off-topic post and move it to the appropriate forum. The Makefile for PL/R actually does attempt to use the dylib, and at one point (at least) worked according to a report that I received. There have been a couple of reported issues with MacOS X since then though. Part of my problem in resolving this has been lack of an OS X machine that I can debug on. Joe, I can provide one login on one of my testing machines here and/or help for debugging. stefano Joe p.s. I apologize in advance for slow responses -- I just arrived 9 timezones away from home at the start of a 2 week business trip. __ R-devel@stat.math.ethz.ch mailing list https://stat.ethz.ch/mailman/listinfo/r-devel __ R-devel@stat.math.ethz.ch mailing list https://stat.ethz.ch/mailman/listinfo/r-devel
Re: [Rd] building recommended packages on Windows
On Tue, 19 Apr 2005, Uwe Ligges wrote: > Maybe you forgot to unpack with the correct tools? >tar xfz R-2.1.0.tar.gz > should do the trick using tar from the tools provided un Duncan > Murdoch's page, but many other (un)compress tools under Windows cannot > deal with the links (e.g. boot.tgz) provided in the Recommended > packages' subdirectory. Arg. Uwe is of course right. Looking at the Recommended packages directory, I did notice that some of the links had different icons from the other link files. I must have unpacked it with cygwin, not with Duncan's tools as instructed in R-admin. After redoing the unpacking, everything went fine. Many thanks for spotting my stupidity, h. -- Hiroyuki Kawakatsu School of Management and Economics 25 University Square Queen's University, Belfast Belfast BT7 1NN Northern Ireland United Kingdom Tel +44 (0)28 9097 3290 Fax +44 (0)28 9033 5156 __ R-devel@stat.math.ethz.ch mailing list https://stat.ethz.ch/mailman/listinfo/r-devel
[Rd] Re: [R] pl/R and MacOS X using R binary
Sean Davis wrote: On Apr 19, 2005, at 8:56 AM, Prof Brian Ripley wrote: Please do consult the posting guide as to the right place. (I've moved this to R-devel and included Joe Conway. Joe: perhaps you could make you email address more readily available in the PL/R pages.) Yes, I'll do that. Sorry for the confusion. Actually, Joe has been quite helpful in this regard and the question has come up on his pl/R email list before, but without resolution, as far as I could tell (but again, I could be sadly mistaken). I thought that posting to r-help (with the caveat that I was perhaps off-topic) would clarify things for me a bit. It has done just that and I really appreciate your willingness to answer the off-topic post and move it to the appropriate forum. The Makefile for PL/R actually does attempt to use the dylib, and at one point (at least) worked according to a report that I received. There have been a couple of reported issues with MacOS X since then though. Part of my problem in resolving this has been lack of an OS X machine that I can debug on. Joe p.s. I apologize in advance for slow responses -- I just arrived 9 timezones away from home at the start of a 2 week business trip. __ R-devel@stat.math.ethz.ch mailing list https://stat.ethz.ch/mailman/listinfo/r-devel
[Rd] Re: [R] pl/R and MacOS X using R binary
On Apr 19, 2005, at 8:56 AM, Prof Brian Ripley wrote: [Moved from R-help.] On Tue, 19 Apr 2005, Sean Davis wrote: I'm sorry if this is too off-topic--feel free to ignore. I am interested in using pl/R, an amazing "plugin" for the postgresql database. As is typical of these types of applications, pl/R needs to link against a shared library. However, it appears that the MacOS R binary does not build a static (.so) shared library. Excuse me, but a .so is a DSO, a Dynamic _Shared_ Object. What does `static' have to do with this? libR is a dynamic library, actually libR$(DYLIB_EXT) with values of .so. .sl and .dylib being known. My misunderstanding, you are correct in that assumption. Your explanation helps a lot. Is there an accepted, general way (read, a way that works) for linking against R (presumably the dylib) on the Mac? Yes, since that is how the GUI on MacOS X works. My guess is that you think that pl/R requires libR.so: if correct that is a false assumption made somewhere along the line, and the best thing to do is to consult the author. In any case This is again my misunderstanding. Please do consult the posting guide as to the right place. (I've moved this to R-devel and included Joe Conway. Joe: perhaps you could make you email address more readily available in the PL/R pages.) Actually, Joe has been quite helpful in this regard and the question has come up on his pl/R email list before, but without resolution, as far as I could tell (but again, I could be sadly mistaken). I thought that posting to r-help (with the caveat that I was perhaps off-topic) would clarify things for me a bit. It has done just that and I really appreciate your willingness to answer the off-topic post and move it to the appropriate forum. Sean __ R-devel@stat.math.ethz.ch mailing list https://stat.ethz.ch/mailman/listinfo/r-devel
[Rd] Re: [R] pl/R and MacOS X using R binary
[Moved from R-help.] On Tue, 19 Apr 2005, Sean Davis wrote: I'm sorry if this is too off-topic--feel free to ignore. I am interested in using pl/R, an amazing "plugin" for the postgresql database. As is typical of these types of applications, pl/R needs to link against a shared library. However, it appears that the MacOS R binary does not build a static (.so) shared library. Excuse me, but a .so is a DSO, a Dynamic _Shared_ Object. What does `static' have to do with this? libR is a dynamic library, actually libR$(DYLIB_EXT) with values of .so. .sl and .dylib being known. Is there an accepted, general way (read, a way that works) for linking against R (presumably the dylib) on the Mac? Yes, since that is how the GUI on MacOS X works. My guess is that you think that pl/R requires libR.so: if correct that is a false assumption made somewhere along the line, and the best thing to do is to consult the author. In any case http://www.joeconway.com/plr/doc/plr-install.html just says Tip: R headers are required. Download and install R prior to building PL/R. R must have been built with the --enable-R-shlib option when it was configured, in order for the libR shared object library to be available. Please do consult the posting guide as to the right place. (I've moved this to R-devel and included Joe Conway. Joe: perhaps you could make you email address more readily available in the PL/R pages.) -- Brian D. Ripley, [EMAIL PROTECTED] 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, UKFax: +44 1865 272595 __ R-devel@stat.math.ethz.ch mailing list https://stat.ethz.ch/mailman/listinfo/r-devel
Re: [Rd] building recommended packages on Windows
Hiroyuki Kawakatsu wrote: Hi, I am building 2.1.0 (re-release version, if that matters) on a Windows XP machine. Following the instructions 3.1 "Building from source" in R-admin.html, I managed to get up to 3.1.6. But when I try to build the recommended packages, I get C:\hiro\codes\proj\R-2.1.0\src\gnuwin32>make recommended --- Unpacking recommended packages VR make[1]: *** No rule to make target `../library/boot/DESCRIPTION'. Stop. make: *** [unpack-recommended] Error 1 What did I do wrong? In /library/Recommended I do see boot_1.2-22.tar.gz but I don't see the /boot subdirectory in /library. Thanks for any help, Maybe you forgot to unpack with the correct tools? tar xfz R-2.1.0.tar.gz should do the trick using tar from the tools provided un Duncan Murdoch's page, but many other (un)compress tools under Windows cannot deal with the links (e.g. boot.tgz) provided in the Recommended packages' subdirectory. Uwe Ligges h. -- Hiroyuki Kawakatsu School of Management and Economics 25 University Square Queen's University, Belfast Belfast BT7 1NN Northern Ireland United Kingdom Tel +44 (0)28 9097 3290 Fax +44 (0)28 9033 5156 __ R-devel@stat.math.ethz.ch mailing list https://stat.ethz.ch/mailman/listinfo/r-devel __ R-devel@stat.math.ethz.ch mailing list https://stat.ethz.ch/mailman/listinfo/r-devel
Re: [Rd] building recommended packages on Windows
Hiroyuki Kawakatsu wrote: Hi, I am building 2.1.0 (re-release version, if that matters) on a Windows XP machine. Following the instructions 3.1 "Building from source" in R-admin.html, I managed to get up to 3.1.6. But when I try to build the recommended packages, I get C:\hiro\codes\proj\R-2.1.0\src\gnuwin32>make recommended --- Unpacking recommended packages VR make[1]: *** No rule to make target `../library/boot/DESCRIPTION'. Stop. make: *** [unpack-recommended] Error 1 What did I do wrong? In /library/Recommended I do see boot_1.2-22.tar.gz but I don't see the /boot subdirectory in /library. Thanks for any help, Did you put the tar.gz file in the right place? It should be in src/library/Recommended, which is where "make rsync-recommended" should put it, not library/Recommended, which won't exist in a correct build. Duncan Murdoch __ R-devel@stat.math.ethz.ch mailing list https://stat.ethz.ch/mailman/listinfo/r-devel
[Rd] building recommended packages on Windows
Hi, I am building 2.1.0 (re-release version, if that matters) on a Windows XP machine. Following the instructions 3.1 "Building from source" in R-admin.html, I managed to get up to 3.1.6. But when I try to build the recommended packages, I get C:\hiro\codes\proj\R-2.1.0\src\gnuwin32>make recommended --- Unpacking recommended packages VR make[1]: *** No rule to make target `../library/boot/DESCRIPTION'. Stop. make: *** [unpack-recommended] Error 1 What did I do wrong? In /library/Recommended I do see boot_1.2-22.tar.gz but I don't see the /boot subdirectory in /library. Thanks for any help, h. -- Hiroyuki Kawakatsu School of Management and Economics 25 University Square Queen's University, Belfast Belfast BT7 1NN Northern Ireland United Kingdom Tel +44 (0)28 9097 3290 Fax +44 (0)28 9033 5156 __ R-devel@stat.math.ethz.ch mailing list https://stat.ethz.ch/mailman/listinfo/r-devel
Re: [Rd] chi-square test
if you print "chisq.test()" you'll see when this warning message appears (i.e., if any expected count is less than 5, in which case it is known that the approximation to the Chi-squared distribution may not be adequate). Alternatively, you could simulate to approximate the reference distribution of the statistic and obtain an estimation of the p-value using: chisq.test(matrix(c(20.1, 18.5, 2.6, 32.9, 23.5, 5.4), nc = 2), simulate.p.value = TRUE) I hope it helps. Best, Dimitris p.s., you should send this message to r-help and not r-devel. Dimitris Rizopoulos Ph.D. Student Biostatistical Centre School of Public Health Catholic University of Leuven Address: Kapucijnenvoer 35, Leuven, Belgium Tel: +32/16/336899 Fax: +32/16/337015 Web: http://www.med.kuleuven.ac.be/biostat/ http://www.student.kuleuven.ac.be/~m0390867/dimitris.htm - Original Message - From: "Benjamin Chan [BRE]" <[EMAIL PROTECTED]> To: Sent: Tuesday, April 19, 2005 10:47 AM Subject: [Rd] chi-square test a warning message appears when i use the chisq.test ,but it doesnt appear everytime, why? "Warning message: Chi-squared approximation may be incorrect in: chisq.test(matrix(c(20.1, 18.5, 2.6, 32.9, 23.5, 5.4), nc = 2)) " why does the warning message appear, please? Thank you very much here is the data which I have tried appear and not appear warning message have warning message (1.3,4.9,12.6,10.5,5.5,6.5,4.7,9.8,10.3,23.2,7.3,6.6) (13.8,8.4,8.7,10.4,25.5,28.7,2.5,5.1) (20.1,18.5,2.6,32.9,23.5,5.4) doesnt have warning message (32.7,8.6,2561.5,2726.5) (44.4,17.4,2561.5,2726.5) (44.4,17.4,32.7,8.6) (13.9,22.3,5.1,17.4,32.3,12) (8.1,5.2,13.8,11.5,2.6,15.8,15.5,9.6,6.7,14.2) (13.9,17.4,22.3,1740,2230,1390) [[alternative HTML version deleted]] __ R-devel@stat.math.ethz.ch mailing list https://stat.ethz.ch/mailman/listinfo/r-devel __ R-devel@stat.math.ethz.ch mailing list https://stat.ethz.ch/mailman/listinfo/r-devel
[Rd] chi-square test
a warning message appears when i use the chisq.test ,but it doesnt appear everytime, why? "Warning message: Chi-squared approximation may be incorrect in: chisq.test(matrix(c(20.1, 18.5, 2.6, 32.9, 23.5, 5.4), nc = 2)) " why does the warning message appear, please? Thank you very much here is the data which I have tried appear and not appear warning message have warning message (1.3,4.9,12.6,10.5,5.5,6.5,4.7,9.8,10.3,23.2,7.3,6.6) (13.8,8.4,8.7,10.4,25.5,28.7,2.5,5.1) (20.1,18.5,2.6,32.9,23.5,5.4) doesnt have warning message (32.7,8.6,2561.5,2726.5) (44.4,17.4,2561.5,2726.5) (44.4,17.4,32.7,8.6) (13.9,22.3,5.1,17.4,32.3,12) (8.1,5.2,13.8,11.5,2.6,15.8,15.5,9.6,6.7,14.2) (13.9,17.4,22.3,1740,2230,1390) [[alternative HTML version deleted]] __ R-devel@stat.math.ethz.ch mailing list https://stat.ethz.ch/mailman/listinfo/r-devel