From d@@tt@li @ending from gm@il@com  Fri Jun 29 08:07:09 2018
From: d@@tt@li @ending from gm@il@com (Dean Attali)
Date: Fri, 29 Jun 2018 02:07:09 -0400
Subject: [Rd] Bug in tools::md5sum - does not work when filepath contains
 tilde (ie home directory)
Message-ID: <CA+j8Z+=ba47m9HRTgfNxP0HMJaUmOMhn=g326En+Q5d=sm+C5Q@mail.gmail.com>

I've reproduced on ubuntu and winodws with R3.4.3

When the filepath contains a tilde, the result is NA. But if the file path
is expanded then the function works.

Example:
tools::md5sum("~/.Rprofile") returns NA
tools::md5sum(normalizePath("~/.Rprofile")) returns the proper md5


Perhaps this is expected behaviour because the documentation does say NA is
returned for unreadable files, but I didn't think "~" would make a file
unreadable to the function.

	[[alternative HTML version deleted]]



[Rd] Bug in tools::md5sum - does not work when filepath contains tilde (ie home directory)
Dean Attali