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

Unable to load library(flextable) due to systemfonts #668

Open
DiqiZeng opened this issue Nov 3, 2024 · 7 comments
Open

Unable to load library(flextable) due to systemfonts #668

DiqiZeng opened this issue Nov 3, 2024 · 7 comments

Comments

@DiqiZeng
Copy link

DiqiZeng commented Nov 3, 2024

I successfully install the package but run into issue when loading the package through library(flextable)

Error message:

library(flextable)
Error: package or namespace load failed for ‘flextable’:
object ‘match_fonts’ is not exported by 'namespace:systemfonts'

I tried

  1. reintsall R studio
  2. reinstall systemfonts
  3. intall flextable from github source
@davidgohel
Copy link
Owner

I think you should update gdtools

@DrChar614
Copy link

Greetings...

Upon updating gdtools, I received the same message our peer in the initial comment received regarding 'flextable'. I too can no longer use this phenomenal package. Any insight into how to fix this would be appreciated. Error message: Error: package or namespace load failed for ‘gdtools’:
object ‘match_fonts’ is not exported by 'namespace:systemfonts'

@davidgohel
Copy link
Owner

Yes, please try:

install.packages("systemfonts")
install.packages("gdtools")

@DrChar614
Copy link

Appreciated...upon attempts to load the flextable package and gdtools, I receive the following errors:

Error: package or namespace load failed for ‘gdtools’:
object ‘match_fonts’ is not exported by 'namespace:systemfonts'

Error: package or namespace load failed for ‘flextable’:
object ‘match_fonts’ is not exported by 'namespace:systemfonts'

I am running R version 4.4.2

@davidgohel
Copy link
Owner

Did you follow the instructions I provided ?

@DrChar614
Copy link

Yes, just as you listed above. Tomorrow I will try this from a different computer and see what results I get. I will follow-up. Your time is appreciated!

@DiqiZeng
Copy link
Author

DiqiZeng commented Nov 4, 2024

I think you should update gdtools

Thanks! my problem is solved after updating gdtools.

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

3 participants