youtuber {remedy} | R Documentation |
Addin to create markdown youtube links
Description
Highlight youtube link in source editor and it will be converted to a markdown link with an image saved in youtube.
Usage
youtuber()
Details
if remedy_opts$get('youtube_output')=='md' then the output will be of the form
[![Alternative text](Youtube Image)](Link to Video). (useful for github readme)
if remedy_opts$get('youtube_output')=='html' then the output will be of the form
<iframe width="remedy_opts$get('youtube_width')" height="remedy_opts$get('youtube_height')" src="link to video" frameborder="0" allowfullscreen></iframe>
Default Settings:
remedy_opts$get('youtube_output'): str(remedy::remedy_opts$get('youtube_output'))
remedy_opts$get('youtube_height'): str(remedy::remedy_opts$get('youtube_height'))
remedy_opts$get('youtube_width'): str(remedy::remedy_opts$get('youtube_width'))
Examples
## Not run:
remedy_example(
"https://www.youtube.com/watch?v=dQw4w9WgXcQ",
youtuber
)
## End(Not run)