Skip to content

install_github fails, files with accents #847

@tdhock

Description

@tdhock

Hi @gaborcsardi I’m using remotes in my teaching, and I find it very useful in general! Thanks for your ongoing maintenance of this important package.

I wanted to demo installation of a package in a sub-directory of a github repository.
I expected the following should work, but I get an error

> remotes::install_github("tdhock/2026-01-aa-grande-echelle/demos/Rcpp-add-pkg@réf-issue")
Using GitHub PAT from the git credential store.
Downloading GitHub repo tdhock/2026-01-aa-grande-echelle@réf-issue
Error: Failed to install 'Rcpp.add' from GitHub:
  input string 61 is invalid
In addition: Warning message:
In gsub("[^/]", "", file_list) :
  unable to translate 'tdhock-2026-01-aa-grande-echelle-561a217/r+<ac>f+<ac>rences.org' to a wide string

In this github repo

  • there is a valid R package in the demos/Rcpp-add-pkg sub-directory
  • there are some valid files with accent marks in their names in other directories (not in the R package)

A work-around is to rename all of the files with accent marks in their names, but it definitely would be more convenient if install_github() could work in this case. Is that a change you would consider, please?
If not, I would suggest adding some documentation on ?install_github which mentions that this is not supported.
Thanks in advance!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions