Coder Social home page Coder Social logo

Comments (6)

taiyodayo avatar taiyodayo commented on July 18, 2024 1

ah I see what you meant.
I was only trying to help the original poster and did not mean to say this as a feature request.
please accept my apologies.

I do add local fonts in my Dockerfile.

from shiny.

taiyodayo avatar taiyodayo commented on July 18, 2024

enable sudo command by invoking rocker/rstudio like this:

docker run  -e ROOT=TRUE -e PASSWORD=yourpassword --rm -p 8787:8787 rocker/tidyverse

in RStudio, open terminal and run

sudo apt update && sudo apt install fonts-noto-cjk

this will install Noto font set for CJK environment.

Once you do, simply set default typeface for the display device by calling from R,

par(family="Noto Sans")

Now it should be able to display any CJK characters in plots, like "**語とか日本語とか"!

This should work for pretty much all languages, as Noto is a font project aiming to cover every language on Earth. Just install the appropriate apt package for the desired language. ("fonts-noto-core" should cover nealy all languages)
https://www.google.com/get/noto/
https://packages.debian.org/sid/fonts-noto-core

from shiny.

eddelbuettel avatar eddelbuettel commented on July 18, 2024

(Filed in the wrong repo, suggest to move to rocker/shiny)

from shiny.

taiyodayo avatar taiyodayo commented on July 18, 2024

above solution is not limited to just shiny, but all rocker images that use ggplot etc. I feel this is the correct repo :)

from shiny.

eddelbuettel avatar eddelbuettel commented on July 18, 2024

It's not, and as we something try to explain gently, there are thousands of packages on CRAN, and tens of thousands of other packages on the distribution repositories. We cannot possibly cater to all possible sub-specialisations. I understand that not having the local font is frustrating, but even if we add it for you it is still missing for a number of other languages. So best maybe to consider a derived container or a locallly modified one.

from shiny.

eitsupi avatar eitsupi commented on July 18, 2024

I think this problem has been solved, so I will close it.

from shiny.

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.