[Rd] linking problem

2007-06-25 Thread Tong Wang
Hi, All I got the following message while trying to compile a file and link it to some local libraries. I am sure that the path to local libs are given correctly, them why can't the linker find them ? These libs are static ones, like libBOOMdebug.a , is this a problem ? Do I need to c

Re: [Rd] There was a problem by the use of snow.

2007-06-25 Thread Prof Brian Ripley
We don't need to change as much as this. The OutBytes function is only called for small objects apart from CHARSXPs: the latter are limited to 2^31 - 1 bytes. So 'length' in a read/write will never exceed INT_MAX. In the current usage, the in-memory code is only used to write to a RAWSXP which

Re: [Rd] There was a problem by the use of snow.

2007-06-25 Thread Ei-ji Nakama
Thank you for advice. library(snow) cl <- makeSOCKcluster(c("localhost","localhost")) clusterCall(cl, function(x){Sys.sleep(10);1}) clusterCall(cl, function(x){Sys.sleep(60);1}) # Timeout Code. stopCluster(cl) I worked in AIX and Linux. diff -ruN R-devel.orig/src/include/Rinternals.h R-devel/src

Re: [Rd] There was a problem by the use of snow.

2007-06-25 Thread Prof Brian Ripley
On Mon, 25 Jun 2007, Ei-ji Nakama wrote: > problem of the very large memory require by the Sign extension. > > --- R-2.5.0.orig/src/main/serialize.c 2007-03-27 01:42:08.0 +0900 > +++ R-2.5.0/src/main/serialize.c2007-06-25 00:48:58.0 +0900 > @@ -1866,7 +1866,7 @@ > > stati

Re: [Rd] problem gsub in the locale of CP932 and SJIS (PR#9751)

2007-06-25 Thread nakama
Thanks. As for mbs_init, the outside of the loop is desirable. probrem code is. > gsub("A","=A5u30bd=A5u8868","A") euc-jp and utf-8 moves without a problem. > Sys.getlocale("LC_CTYPE")# SHIFT_JIS system. [1] "ja_JP.SJIS" > charToRaw("=A5u30bd=A5u8868") # The second byte is a char of 5c [1

Re: [Rd] problem gsub in the locale of CP932 and SJIS (PR#9751)

2007-06-25 Thread ripley
Thanks for this. I don't think the patch is quite right. As I understand it, mbstate_t should be initialized at the start of the string, not before each character, and that is what is done in the rest of R. Also, do you have an example I can use to test the patch, please? R 2.5.0 is now in co

Re: [Rd] errors in compiling R-2.5.0 and R-2.4.0[sec=unclassified]

2007-06-25 Thread Prof Brian Ripley
We don't have enough to go on: the errror is before the output you give. (Hint: 'additional'.) However, this is a link error and not a compilation error, nor is it an R problem. Please show the full output to your local Linux advisor. It is likely that the correct flag for PIC code is not being