Git Product home page Git Product logo

Comments (9)

jjallaire avatar jjallaire commented on September 26, 2024 1

Okay, so if a Shiny application wants to use this package they would need to install knitr then?

What about making knitr suggests and doing a requireNamespace() around the use of knitr::knit_print()?

from fontawesome.

rich-iannone avatar rich-iannone commented on September 26, 2024

I definitely think so. I’ll pare down so we just have to import htmltools and knitr.

from fontawesome.

jjallaire avatar jjallaire commented on September 26, 2024

Okay, great!

I could be wrong about this, but since htmltools implements knit_print for tags you might not need the knitr dependency either.

from fontawesome.

rich-iannone avatar rich-iannone commented on September 26, 2024

Ah, even better... hopefully it'll just depend on htmltools then.

from fontawesome.

rich-iannone avatar rich-iannone commented on September 26, 2024

Rewrote the main function fa() to have only the dependency on htmltools. Will investigate doing the same for the knit_print method.

from fontawesome.

jjallaire avatar jjallaire commented on September 26, 2024

It seems to me as if you shouldn't require the knit_print method at all (since the object is already a tag and tag implements knit_print as well).

from fontawesome.

wch avatar wch commented on September 26, 2024

FWIW, I believe that even if you have a knit_print method, you don't need to import anything from knitr.

from fontawesome.

rich-iannone avatar rich-iannone commented on September 26, 2024

We needed to use knitr::knit_print() in order to workaround the issue of FontAwesome icons in header-level text. Without this method, the icon rendering in headings wasn't correct.

from fontawesome.

rich-iannone avatar rich-iannone commented on September 26, 2024

The use of requireNamespace() has now been implemented. And, knitr was moved to the Suggests list.

from fontawesome.

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.