Re: [R] filehash

From: Prof Brian Ripley <ripley_at_stats.ox.ac.uk>
Date: Sat, 15 Mar 2008 11:10:49 +0000 (GMT)

I suspect you have a file permission problem, and noticed filehash has some bugs which would mask this. E.g. it does

createDB1 <- function(dbName) {

     if(!hasWorkingFtell())
         stop("need working 'ftell()' to use 'DB1' format")
     if(!file.exists(dbName))
         file.create(dbName)
     else
         message(gettextf("database '%s' already exists", dbName))
     TRUE

}

and so fails to check that file.create succeeded, and calls message() on an already translated message without 'domain=NA'. (It also calls dir.create without checking the result.)

As far as I can see filehash will try to create a file in the current working directory. Did you set up the shortcut as dscribed in the rw-FAQ so that the working directory was owned by you?

On Fri, 14 Mar 2008, Davood Tofighi wrote:

> Hello,
>
> I'm using filehash on the windows XP and it has been working fine with the
> newest R version 2.6.2. However, on the windows vista, when I ran the same
> code, I got the following error:
>
>> dbCreate("simdb") #create simdb database
> [1] TRUE
>> db<-dbInit("simdb") #initiate an object of database
> Error in sprintf(gettext(fmt, domain = domain), ...) :
> object "datafile" not found
>>
>
> Thanks,
> Davood
>
> [[alternative HTML version deleted]]
>
> ______________________________________________
> 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.
>

-- 
Brian D. Ripley,                  ripley_at_stats.ox.ac.uk
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, UK                Fax:  +44 1865 272595

______________________________________________
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.
Received on Sat 15 Mar 2008 - 11:22:51 GMT

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Mon 17 Mar 2008 - 14:00:23 GMT.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-help. Please read the posting guide before posting to the list.

list of date sections of archive