New Distill user here, trying to set up a blog and having issues with the import process for a particular repository. I'm not totally sure if this is a matter of me not understanding the documentation right or something about the particular repo.
I have successfully set up a new Distill blog. I then tried importing a post from a Github repo created previously. However, using the import_post()
command produces a 404 error.
Attempt 1
> import_post("https://github.com/vgXhc/madison-commute-demographics")
Importing https://github.com/vgXhc/madison-commute-demographics...
Error in open.connection(con, "rb") : HTTP error 404.
The repo contains an Rmd and HTML file (article.Rmd
and article.html
) with output: distill::distill_article
specified. Maybe it's an issue with there being more than 1 Rmd file?
Also tried the links to the actual html files:
> import_post("https://github.com/vgXhc/madison-commute-demographics/raw/main/article.html")
Importing https://github.com/vgXhc/madison-commute-demographics/raw/main/article.html...
Error in open.connection(con, "rb") : HTTP error 404.
> import_post("https://github.com/vgXhc/madison-commute-demographics/blob/main/article.html")
Importing https://github.com/vgXhc/madison-commute-demographics/blob/main/article.html...
Error in open.connection(con, "rb") : HTTP error 404.
Attempt 2
The github example unfortunately doesn't work anymore (an actual 404 when trying to go to https://github.com/jjallaire/distill-article)
Instead I tried @maelle 's example from #139 :
> import_post("https://github.com/maelle/distill-standalone-post")
Importing https://github.com/maelle/distill-standalone-post...
This article does not have a creative commons license. Import anyway? [Y/n]: y
Imported to _posts/untitled
Title: Untitled
Author: Jones, Nora
License: (No license detected)
That worked. I also created new test repository, with an empty template post, which also imported successfully
So I suspect it's something with the particular repository that causes issue, but I can't see what it would be.
[edit 12/21: It occurred to me that I should try
- create a new Github repo
- copy the article.Rmd into that repo and knit
- try importing again
Result: the import was successful. So it must be something about how the original repo is set up.]