Check the return value of 'file.create' in 'createDB1'
commit263620b012a6ef124b5e3bb76d1383ebeae89892
authorRoger D. Peng [audrey] <rpeng@jhsph.edu>
Mon, 17 Mar 2008 13:53:21 +0000 (17 09:53 -0400)
committerRoger D. Peng [audrey] <rpeng@jhsph.edu>
Mon, 17 Mar 2008 13:53:21 +0000 (17 09:53 -0400)
treefaf57ae91e57f621307c3aec57e0a476b42cfa60
parent3bc8d31fcc4f5d02f26e13ff632d407fa5ffef03
Check the return value of 'file.create' in 'createDB1'

If the user's working directory is not a directory for which the
user has write permission (i.e. on Windows), then 'file.create'
will fail but no one will know.  Now we check the return value
of 'file.create' and throw an error if 'file.create' does not
succeed.

See the R-help list at https://stat.ethz.ch/pipermail/r-help/2008-March/157246.html
R/filehash-DB1.R