embed_png: embed png in the markdown

Description Usage Arguments Details Value Examples

View source: R/rwordpress.R

Description

work for both http and local image , for html , the image if path started with http, it will be put at the img tag directly

Usage

1
embed_png(path, dpi = 200)

Arguments

path

value

dpi

value

Details

otherwise, path should have the "rfigures" in it and the png file should be existed in http://www.bagualu.net/wordpress/rfigures/ it will not copy the files there , so you need to do it manually

for pdf , both http and local img are supported, local image does not need to be on the website

Value

returndes

Examples

1
x=c(1,2,3) 

jiang-hang/rwp documentation built on May 19, 2019, 9:29 a.m.