Import Dataset from Text(base) does not work properly for file encoding which is different from encoding of system

Open
#264 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
35/100
Issue type
Bug
Clarity
Mostly clear
Activity status
Stale
Tech stack
r
Domain
desktop

Research direction

No repository file, test, or entry point is named. First reproduce the File → Import Dataset → From Text (base) workflow with a LATIN1 CSV on a non-LATIN1 system, then inspect the generated read.csv call; done means it uses fileEncoding="LATIN1" rather than encoding="LATIN1".

Written by the indexing model from the issue text.

Description

RStudio 2022.07.1 Build 554 (and earlier versions) on Kubuntu 22.04.

Using menu File -> Import Dataset -> from Text(base) for LATIN1 (see attachement) translates to
DF <- read.csv("barplot1-latin-1.csv", encoding="LATIN1", sep=";")
instead of (the more useful)
DF <- read.csv("barplot1-latin-1.csv", fileEncoding="LATIN1", sep=";")

fileEncodingLatin1

Dominant language
R
Stars
175
Forks
37
PR merge metrics
No merged PRs in 30d

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from rstudio/rstudioapi

All issues in rstudio/rstudioapi

Similar issues

More R issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.