Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Package doesn't work: Error in loadNamespace(x) : there is no package named ‘jsonlite’ #66

Open
yPennylane opened this issue Aug 16, 2023 · 3 comments

Comments

@yPennylane
Copy link

When I try font_add_google(name = "Noto Sans", family = "Noto Sans") then the error Error in loadNamespace(x) : there is no package named ‘jsonlite’ occurs.

I cannot use the showtext package.

How can I fix this?

@yixuan
Copy link
Owner

yixuan commented Aug 16, 2023

As the error message shows, to use font_add_google() you need to install the jsonlite package.

@yPennylane
Copy link
Author

yPennylane commented Aug 16, 2023

Ok, thank you. I needed to install curl as well. I don't know why these packages were not installed as dependencies (to ensure working functions) automatically.

@yixuan
Copy link
Owner

yixuan commented Aug 16, 2023

They are listed as Suggests of the package, since the basic functions of showtext do not rely on them.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants