Comments (3)
Hi, thanks for using conflr! I think you can convert the HTML to a Markdown file first by pandoc, and then you can add the YAML front-matter and rename it to .Rmd
.
https://rmarkdown.rstudio.com/docs/reference/pandoc_convert.html
from conflr.
Hmm I must be doing that wrong -- I tried
rmarkdown::pandoc_convert("/path/to/test.html",
output = "/path/to/test.md")
# Rename test.md to test2.Rmd
conflr::confl_create_post_from_Rmd("/path/to/test2.Rmd",
interactive = FALSE,
title = "Test",
space_key = "SPACE",
parent_id = 63322513,
toc = TRUE,
toc_depth = 7,
code_folding = "hide",
update = TRUE,
minor_edit = TRUE)
And get the error:
Checking the existing images...
Uploading the images...
Error in httr::upload_file(path) : file.exists(path) is not TRUE
I also tried pasting the Yaml info at the top of test2.Rmd but got the same error. Doing conflr::confl_create_post_from_Rmd("/path/to/test.Rmd", ...)
works fine...
from conflr.
Sorry, I forgot to comment. It seems the image path needs some tweak to let conflr to find the actual file.
Anyway, I decided to close this issue as supporting the already rendered HTML is out of scope of conflr... Sorry!
from conflr.
Related Issues (20)
- Error after rendering HOT 4
- error during uploading of images HOT 1
- How can I publish R package documentation to confluence HOT 4
- Issue 'Base URL of Confluence API' "Error : ! Invalid credentials" RStudio HOT 2
- Including interactive network map with visNetwork? HOT 1
- Error rendering macro 'code' HOT 1
- Is it possible to programmatically untick "notify watchers" when posting to confluence? HOT 3
- `code_folding: hide` is not folding code HOT 2
- 403 forbidden HOT 3
- read html file as `body` in `conflr::confl_update_page()` HOT 2
- Rmarkdown upload with interactive plots HOT 2
- Fix for inline maths/ list elements not getting translated
- Invalid credentials / no access with personal access token
- add R markdown template
- Quarto support HOT 1
- Links to headings
- How to create links to top of the document?
- scrollbars on wide tables? HOT 1
- DT::datatable only shows header HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from conflr.