rstudio / rstudio/reticulate

file name conversion problem -- name too long?

Open
#486 4 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
R
Stars
1.8k
Forks
349
Avg merge
5h 13m
Merged PRs (30d)
4

Description

Hi,

I have this basic problem using reticulate. I can´t run any kind of python code from notebook or rmarkdown document. For example,


title: "Untitled"
output: pdf_document

library(reticulate)


x = 5

Wich gives this error message:

Error in dir.exists(x) : file name conversion problem -- name too long?

I think this a very basic problem, but I can´t solve.

Thanks for any help!

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.

Research direction

Start by reproducing the minimal reticulate example in the issue from a notebook or R Markdown document, then trace the file-name handling that leads to the dir.exists() error. Done means the example runs its Python chunk without the file name conversion error.

Written by the indexing model from the issue text.

Assessment

Tech stack
python, r
Domain
tooling
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.