Skip to content

R command throw UnicodeDecodeError #95

Open

Description

@Mari123i

Hello dear authors,

I have a very persistend problem I can't find a solution for. When executing almost all commands in cells with "%%R" get a similar Error like this:
cell probalmes utf8

utf-8 decoding

The cell that did work was this one: but for the imports I had to work around as you can see, since it threw an error:
worked and workaround

How can I resolve this or what may be the cause? My R version is 4.2.0 and I am on Windows 10 x64.

Thank you a lot,

Mariam

Activity

  1. LuckyMD commented on May 11, 2022

    @LuckyMD
    Contributor

    Hi Mariam,

    I'm afraid I have no experience with windows at all, so I can't be of much help. The error suggests that there's a strange encoding of a particular character. Could you try retyping the command in full yourself instead of using the notebook command to see if anything changes? I wonder if the way the comma is encoded in the command might be interpreted strangely.

  2. Mari123i commented on May 11, 2022

    @Mari123i
    Author

    I tried typing it but get the same error unfortunately. A simple command like this works:
    %%R
    j_1 = 1
    print(1==j_1)

    I tried to check wether equal signs are a problem or underscores.

  3. Mari123i commented on May 11, 2022

    @Mari123i
    Author

    I tried it also this way: same error
    no
    and checked all the chars of the input string
    utf8
    this is so weird because the character it is complaining about is not even there
    no ü

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions