Giter VIP home page Giter VIP logo

Comments (5)

choonghyunryu avatar choonghyunryu commented on June 20, 2024

@dee-L,

Hope your issue is resolved.
And, to answer your question:

  1. What do you suggest to resolve this problem?

Check the version of the Rttf2pt1 package by running the following command:
installed.packages()["Rttf2pt1", "Version"]
If the Rttf2pt1 version is earlier than 1.3.8, try loading dlookr after installing the 1.3.8 version.

The dlookr package loads fonts using the extrafont package.
However, there was a problem with the Rttf2pt1 package, which was recently registered with CRAN and used by the extrafont package.
The version of Rttf2pt1 that fixed the issue is 1.3.8.

  1. What downstream consequences might I face if I don't solve this problem?

The latest dlookr package uses Arial Narrow fonts for visualization.
If Rttf2pt1 fails to load the font, a problem occurs when executing dlookr's visualization function.

from dlookr.

 avatar commented on June 20, 2024

Thanks for the response.

I checked the Rttf2pt1 version, and it was 1.3.9. Nonetheless, I ran the following, but the error persists:

install.packages('Rttf2pt1')
install.packages('dlookr')
library('dlookr')

Since the error is persisting even after re-installing the latest versions of both packages, do you have any other suggestions?

from dlookr.

choonghyunryu avatar choonghyunryu commented on June 20, 2024

@dee-L

Sorry.
dlookr was developed on the premise that Rttf2pt1 works normally.

In R, it is very difficult to link a specific program in the user's environment. Since each user's environment is different, when an error occurs, it is necessary to find the cause of the problem in the same environment.

I'm not a Rttf2pt1 developer, so I can't figure out what's causing the error in this program.
As in your case, there may be users who have errors in the Rttf2pt1 program, so I will implement a function that can replace Rttf2pt1 in the next version of dlookr.

In the next version I will try to make dlookr work without problems on your Windows.

from dlookr.

choonghyunryu avatar choonghyunryu commented on June 20, 2024

@dee-L

Changed the way fonts are imported into the R environment to insert fonts into the plot. For this method, the extrafont package was changed to the showtext package. So dlookr no longer needs Rttf2pt1.

It has been reflected in the Github version, and is currently being submitted to CRAN for distribution.

The English font includes "Liberation Sans Narrow" and the Korean font includes "NanumSquare" in the package.
And I made google fonts available online. The English font "Roboto Condensed" and the Korean font "Noto Sans KR" were set to be usable.

from dlookr.

choonghyunryu avatar choonghyunryu commented on June 20, 2024

@ghost

dlookr has replaced the functionality of the extrafont package with the showtext package. So now dlookr no longer uses Rttf2pt1 anymore. Therefore, this issue does not occur.

from dlookr.

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.