Learn R Programming

git2r (version 0.35.0)

hash: Determine the sha from a blob string

Description

The blob is not written to the object database.

Usage

hash(data = NULL)

Value

A string vector with the sha for each string in data.

Arguments

data

The string vector to hash.

Examples

Run this code
if (FALSE) {
identical(hash(c("Hello, world!\n",
                 "test content\n")),
               c("af5626b4a114abcb82d63db7c8082c3c4756e51b",
                 "d670460b4b4aece5915caf5c68d12f560a9fe3e4"))
}

Run the code above in your browser using DataLab