Learn R Programming

reproducible (version 3.2.1)

mergeShownCacheCloud: Fold cloud cache metadata into a local showCache result for showSimilar

Description

Restricts the cloud-sourced metadata (from showCacheCloud()) to the same function as the current call, then rbinds it onto the local shownCache, de-duplicating on cacheId/tagKey/tagValue. Pure (no I/O) so the merge behaviour can be tested without Google Drive.

Usage

mergeShownCacheCloud(shownCache, cloudShown, .functionName = NULL)

Value

A combined cache data.table.

Arguments

shownCache

The local showCache() data.table.

cloudShown

The cloud metadata data.table from showCacheCloud().

.functionName

The function name to keep from cloudShown (or NULL for all).