file_matches_string | R Documentation |
Check whether the md5 digest of a string matches the digest of a file. In other words, are the contents of the string and the file the same.
file_matches_string(path, string, append = "\n")
path |
String giving the path to the file. |
string |
Character scalar to hash and compare to hash of file |
append |
Character scalar to append to the end of string. Defaults
to |
Similar to file_matches but takes a string that will be hashed to MD5 before comparing. By default it also appends a new line to the end of the string before hashing (because most file writer functions do this automatically).
TRUE
if path
matches string
, otherwise FALSE
(including if
path
doesn't exist).
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.