kb_file_exists: See if a file exists

View source: R/import.r

kb_file_existsR Documentation

See if a file exists

Description

See if a file exists

Usage

kb_file_exists(user, path)

Arguments

user

Keybase user ID or a keybase.pub URL

path

path of resource (file) to read (relative from the top level of the public folder). If user is a URL this parameter is ignored.

Value

TRUE if the specified file exists

Examples

kb_file_exists("hrbrmstr", "index.md")
kb_file_exists("https://hrbrmstr.keybase.pub/data/Rlogo.pngd")
kb_file_exists("hrbrmstr", "data/Rlogo.png")

hrbrmstr/keybase documentation built on May 16, 2022, 6:58 a.m.