Skip to content

filehash

3 messages · Davood Tofighi, Brian Ripley, Roger D. Peng

#
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:

            

  
    
2 days later
#
Yes, the file will be created in the current working directory and is probably 
the reason for the error in 'dbInit'.  This is a bit of a dumbo on my 
part---thanks for copying me.

-roger
Prof Brian Ripley wrote: