Trim trailing '/' in initializeRDS
commitc9ed0cc2356cc0c8cfa36c993012164dd280159a
authorRoger D. Peng [audrey] <rpeng@jhsph.edu>
Fri, 16 Nov 2007 16:51:42 +0000 (16 11:51 -0500)
committerRoger D. Peng [audrey] <rpeng@jhsph.edu>
Fri, 16 Nov 2007 16:51:42 +0000 (16 11:51 -0500)
tree19e39276c7d6996fc3ee025aed6b2965e69d314b
parent053b166754bcb30fbefa0e900d0f1253a418eb69
Trim trailing '/' in initializeRDS

Got the following report:

I just want to report you a minor problem that I've noticed with dbInit.

> dbInit("C:/Logs", type="RDS")
'filehashRDS' database 'Logs'
> dbInit("C:/Logs/", type="RDS")
Error in validObject(.Object) :
  invalid class "filehashRDS" object: directory 'C:\Logs\' does not exist
>

This appears to be a Windows system and the problem is that 'file.exists'
appears to be returning FALSE if the directory has a trailing '/'.
R/filehash-RDS.R