Skip to contents

The pin() function downloads a URL to a local file in the gitpins folder inside your project (the currently fixed path is determined by here("gitpins")), and then returns the full file name name of the local file, which can be passed as an argument to any function that expects to read such a file.

Usage

pin(url, refresh_hours = 12)

gp_pin(url, refresh_hours = 12)

Arguments

url

The URL do download (or get a cached copy of).

refresh_hours

How old, in hours, can the locally cached copy be before downloading a new version.

Value

The path of the locally downloaded file