See CONTRIBUTING.md License Copyright (C) 2019 LINE Corporation Library(conflr) # list pages res ')) new_page $ ` _links ` How to contribute These low-level functions might be useful when you need to access to your Confluence programmatically. Advanced UsagesĬonflr is also a (non-complete) binding to Confluence’s REST API. Instead, you can embed the screenshot by setting screenshot.force = TRUE in the chunk option (c.f. htmlwidgets (e.g. leaflet, plotly)Ĭonflr doesn’t support htmlwidgets-based packages like leaflet and plotly. Otherwise, you will see “unknown macro” errors on the page. But, it requires LaTeX Math addon installed. conflr_addin_clear_password_after_success: If TRUE, unset CONFLUENCE_PASSWORD after the page is successfully uploaded via addin.Ĭonflr supports Math expressions to some extent.conflr_supported_syntax_highlighting: A character vector of languages that your Confluence supports the syntax highlighting in addition to the default languages (by default, sql, cpp, python, html, css, bash, and yaml are supported).įor the detail about available options, please refer to ?confluence_document. title: "title1" output: conflr::confluence_document: space_key: "space1" update: true. If you don’t use RStudio, you can use confl_create_post_from_Rmd(). TOC depth: The lowest heading level to include in the Table of Contents.TOC: If checked, add a Table of Contents.Fold code blocks: If checked, code blocks are folded by default.Use original image sizes: If checked, do not resize the images.Parent page ID: (optional): The ID of the parent page to the page.Space Key: The key of the space you want to post.type: The type of the page ( page means a normal wiki page, whereas blogpost mean a blog post, not a page).Then, you will be asked your username and password. ( Caution for those who are not familiar with R Markdown: R Markdown’s powerfulness allows you to execute arbitrary code be sure about what the code does before clicking “Post to Confluence”!) Rmd file and click “Post to Confluence” Addin Specify conflr::confluence_document on the YAML front-matter.Run confl_create_post_from_Rmd() on console.CONFLUENCE_URL= UsagesĬonflr provides the following ways to post R Markdown documents to Confluence. ![]() ![]() For example, you can set the base URL in the file as the following. Renviron file (you can open the file with usethis::edit_r_environ()). The inputs are cached in the environmental variables listed above by default.Īnother way is to set the variables in the. The quickest way is to enter in the popups that are displayed when you run the addin (see Usages section below). There are several ways to set these environmental variables. For more details about API token, please read the official document). CONFLUENCE_PASSWORD: Your password (On Atlassian Cloud, your API token.CONFLUENCE_USERNAME: Your username (On Atlassian Cloud, your email address).CONFLUENCE_URL: The base URL of your Confluence.# install.packages("devtools") devtools :: install_github( "line/conflr") PreparationĬonflr uses these environmental variables to access your Confluence.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |