Hacktoberfest 2026:メンテナが10月に向けて印を付けた、オープンで初心者向けの issue。 Hacktoberfest の issue を見る

Incomplete Installation of LaTeX Packages for Language "de-CH"

クローズ 初心者向け
#515 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

関連するプルリクエストがすでにマージされています。

  • #516 @cderv による — マージ済み

評価

難易度
2/5
見積もり時間
1〜3時間
初心者へのやさしさ
78/100
issue の種類
バグ
明瞭さ
明確に書かれている
活発さ
活発
技術スタック
latex, r
領域
tooling

調査の方向性

まず TinyTeX のパッケージインストール検出ロジックから始め、クリーンなインストールでドキュメントに記載された de-CH の例を再現します。nswissgerman.ldf に対して babel-german がどのように選択されるかを追跡し、言語 de のマッピングと比較してから、対象を絞ったリグレッションテストを追加します。完了の基準は、必要な場所で自動インストールに hyphen-german が含まれ、手動でのパッケージインストールなしで例がレンダリングされることです。

索引モデルが issue の本文から書いたものです。

説明

Problem Description

When I render this document with language de-CH in a fresh TinyTeX installation:

---
title: "Untitled"
lang: de-CH
format: pdf
---


```{r}
library(kableExtra)
kbl(mtcars, booktabs = TRUE)
```

the package babel-german is installed automatically as it should be:

finding package for nswissgerman.ldf
> 1 package to install
> installing babel-german (1 of 1)

Still, rendering aborts with the following error:

ERROR: 
compilation failed- error
Package babel Error: You haven't defined the language 'ngerman' yet.
(babel)                Perhaps you misspelled it or your installation
(babel)                is not complete.

Workaround

After installing the package hyphen-german manually with

tinytex::tlmgr_install("hyphen-german")

rendering works.

Expected Behaviour

My understanding is that TinyTeX should automatically install all the required packages for successful rendering. If this is indeed the idea, then I think that for the language de-CH, the package hyphen-german should also be automatically installed such that rendering works without any need for manual installation of LaTeX packages.

Additional Remark

Surprisingly, at least for me, when using the language de, rendering works even when hypen-german is not installed. I have not checked, however, whether hyphenation is correct. Maybe, hypen-german should also be automatically installed in this case?

Session info

I'm rendering the document by pressing "Preview" in Positron, so this is not the session info from the exact session where the rendering took place. I ran this in a fresh R session:

xfun::session_info('tinytex')
## R version 4.6.1 (2026-06-24)
## Platform: x86_64-pc-linux-gnu
## Running under: Ubuntu 26.04.1 LTS, Positron 2026.09.1
## 
## Locale:
##   LC_CTYPE=en_US.UTF-8       LC_NUMERIC=C              
##   LC_TIME=de_CH.UTF-8        LC_COLLATE=en_US.UTF-8    
##   LC_MONETARY=de_CH.UTF-8    LC_MESSAGES=en_US.UTF-8   
##   LC_PAPER=de_CH.UTF-8       LC_NAME=C                 
##   LC_ADDRESS=C               LC_TELEPHONE=C            
##   LC_MEASUREMENT=de_CH.UTF-8 LC_IDENTIFICATION=C       
## 
## Package version:
##   graphics_4.6.1  grDevices_4.6.1 stats_4.6.1     tinytex_0.61.1 
##   tools_4.6.1     utils_4.6.1     xfun_0.61      
## 
## LaTeX version used: 
##   TeX Live 2026 (TinyTeX) with tlmgr 2026-10-02

Checklist

When filing a bug report, please check the boxes below to confirm that you have provided us with the information we need. Have you:

  • formatted your issue so it is easier for us to read?

  • included a minimal, self-contained, and reproducible example?

  • pasted the output from xfun::session_info('tinytex') in your issue?

  • upgraded all your packages to their latest versions (including your versions of R, the RStudio IDE, and relevant R packages)?

  • installed and tested your bug with the development version of the tinytex package using remotes::install_github("rstudio/tinytex") ?

主要言語
R
スター
1.2k
フォーク
128
平均マージ
1時間 44分
マージ済み PR(30日)
3

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

rstudio/tinytex のほかの issue

rstudio/tinytex の issue をすべて見る

似ている issue

R の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。