dall_e | R Documentation |
This function uses openai to generate an image with Dall-e, but downloads it into a specified folder. The snippet for markdown usage also added to the clipboard.
dall_e(promt, folder.path = "figures/", size = "1024x1024")
promt |
(string) The prompt for the image. |
folder.path |
(string) The folder where to save the image. Finish it with "/". |
size |
(string) The size of the generated images. Must be one of 256x256, 512x512, or 1024x1024 (default). |
dall_e("R programmer writing a new package.")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.