Code Monkey home page Code Monkey logo

Comments (6)

jjallaire avatar jjallaire commented on July 19, 2024

This should be addressed with this commit: rstudio/radix@3ce7fa1

from distill.

JulianSpagnuolo avatar JulianSpagnuolo commented on July 19, 2024

The commit did not fully address the issue.
The check_license parameter is ignored as it is not parsed by the underlying import_article function.
Also an error is given:

import_post(url="/Users/user/Documents/projects/test.html", check_license = FALSE)
Importing /Users/user/Documents/projects/test.html...
This article does not have a creative commons license. Import anyway? [Y/n]: Y
Error: $ operator is invalid for atomic vectors

also with the underlying function:

radix:::import_article(url="/Users/user/Documents/projects/test.html", check_license = FALSE, collection = "posts")
Importing /Users/user/Documents/projects/test.html...
Error: $ operator is invalid for atomic vectors

from distill.

jjallaire avatar jjallaire commented on July 19, 2024

Thanks again for reporting. I just pushed a fix to the check_license issue.

Is the file /Users/user/Documents/projects/test.html a radix article or just a generic html document? If it's the latter then it wouldn't work (although the error message should be much better).

If it is a Radix article, I haven't been able to reproduce this error locally so it might be best if you could attach that file to this issue (or publish it somewhere e.g. RPubs) so that I can reproduce with exactly the file you are using.

from distill.

JulianSpagnuolo avatar JulianSpagnuolo commented on July 19, 2024

I rendered the file off as both a Notebook (prefix *.nb.html) and a radix article (prefix *.html). I was trying to import the latter.

Attached the test file (zipped w/ the .Rmd because github wont allow html attachments.
test.zip

from distill.

jjallaire avatar jjallaire commented on July 19, 2024

Okay, thanks! I now have a local repro so should be able to fix :-)

from distill.

jjallaire avatar jjallaire commented on July 19, 2024

Okay, should be fixed here: rstudio/radix@88337ac

Thanks again for reporting!

from distill.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.