Re: [R] snowfall sfInit error

2008-12-12 Thread chibco
Thanks

On Thu, Dec 11, 2008 at 10:19 AM, Jochen Knaus wrote:

> Dear Mr. Ripley,
>
> indeed that it true. sfInit() currently have a bug on Windows depending on
> the usage of the Linux tools and the broken Exceptionhandling. Too bad I
> never tested it accordingly on Windows (as we do not have any Windows
> machines in our institute).
>
> snowfall 1.62 is in the pipe with many other fixes (e.g. NetWorkSpaces
> usage) and I will include a Windows workaround in it.
>
> It will go out for testing at the beginning of the week and should be on
> CRAN end of the week.
>
> Best regards, Jochen Knaus
>
>
>
>
>  On Sat, 6 Dec 2008, chi...@gmail.com wrote:
>>
>>  Dear all,
>>>
>>> I am trying to execute the simple example in snowfall
>>> http://cran.r-project.org/web/packages/snowfall/vignettes/snowfall.pdf...
>>>
>>> require(snow)
>>> require(snowfall)
>>> sfInit( parallel=TRUE, cpus=2 )
>>> sfLapply( 1:10, exp )
>>> sfStop()
>>>
>>> I have installed the snow and snowfall packages in R on a machine with
>>> windows xp, however, after running the "sfInit( parallel=TRUE, cpus=2 )"
>>> line I get an error ...
>>>
>>> Error in system("whoami", intern = TRUE, ignore.stderr = TRUE) :
>>>  whoami not found
>>> Error in paste(sep = "_", "R", uname, format(Sys.time(),
>>> "%H%M%S_%m%d%y")) :
>>>  object "uname" not found
>>>
>>> I am the only (administrator) user of the computer. It has a dual core
>>> processor, and is not networked.
>>>
>>> I would be greatful if someone could tell me how to proceed.
>>>
>>
>> Follow the posting guide (see the footer of this message) and talk to the
>> maintainer of 'snowfall'.  Most likely it is not intended to be used on
>> Windows, but has not declared that.  'whoami' and 'uname' are Unix programs,
>> not Windows ones, but R's Sys.info() provides equivalent information.
>>
>>
>>> Kind regards
>>>
>>> Chibisi
>>>
>>>[[alternative HTML version deleted]]
>>>
>>> __
>>> 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.
>>>
>>>
>>
>

[[alternative HTML version deleted]]

__
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] snowfall sfInit error

2008-12-06 Thread chibco
Dear all,

I am trying to execute the simple example in snowfall
http://cran.r-project.org/web/packages/snowfall/vignettes/snowfall.pdf ...

require(snow)
require(snowfall)
sfInit( parallel=TRUE, cpus=2 )
sfLapply( 1:10, exp )
sfStop()

I have installed the snow and snowfall packages in R on a machine with
windows xp, however, after running the "sfInit( parallel=TRUE, cpus=2 )"
line I get an error ...

Error in system("whoami", intern = TRUE, ignore.stderr = TRUE) :
  whoami not found
Error in paste(sep = "_", "R", uname, format(Sys.time(),
"%H%M%S_%m%d%y")) :
  object "uname" not found

I am the only (administrator) user of the computer. It has a dual core
processor, and is not networked.

I would be greatful if someone could tell me how to proceed.

Kind regards

Chibisi

[[alternative HTML version deleted]]

__
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] Reading tables using a truncated name

2008-11-11 Thread chibco
Hi all,

Thanks everyone for your advice. They have been helpful.

Just for the record, I am using ...

lapply(dir(path = filePath, pattern = "^test_"), function(x){read.table(file
= paste(filePath, x, sep = ""), sep = ",", header = TRUE)  }  )

to load the files

kind regards

Chibisi

On Tue, Nov 11, 2008 at 5:13 PM, Henrique Dallazuanna <[EMAIL PROTECTED]>wrote:

> Try this:
>
> sapply(dir(patt="^test_"), read.table, sep = ";", header = TRUE)
>
> On Tue, Nov 11, 2008 at 3:06 PM, <[EMAIL PROTECTED]> wrote:
>
>> Dear all,
>>
>> I am trying to read a bunch of csv files using read.table() that are named
>> "test_xx.csv" where "xx" has no particular pattern. Is there a way
>> of reading all the files by specifying a truncated file name e.g. "test_"
>> with some wild card characters, or would I have to laboriously create some
>> vector with the "xx" names and iterate or lapply() over it?
>>
>> Kind regards
>>
>> Chibisi
>>
>>[[alternative HTML version deleted]]
>>
>> __
>> 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.
>>
>
>
>
> --
> Henrique Dallazuanna
> Curitiba-Paraná-Brasil
> 25° 25' 40" S 49° 16' 22" O
>

[[alternative HTML version deleted]]

__
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] Reading tables using a truncated name

2008-11-11 Thread chibco
Dear all,

I am trying to read a bunch of csv files using read.table() that are named
"test_xx.csv" where "xx" has no particular pattern. Is there a way
of reading all the files by specifying a truncated file name e.g. "test_"
with some wild card characters, or would I have to laboriously create some
vector with the "xx" names and iterate or lapply() over it?

Kind regards

Chibisi

[[alternative HTML version deleted]]

__
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.