fs_embed function

Upload a figure to figshare and return the url

Upload a figure to figshare and return the url

fs_embed(file)

Arguments

  • file: path to an image file

Returns

a url to the image file

Details

use with opts_knit$set(upload.fn = fs_embed)