Questions tagged [reticulate]

Usage questions regarding reticulate R package which provides a comprehensive set of tools for interoperability between Python and R.

Questions on the reticulate R package which provides a comprehensive set of tools for interopability between Python and R. More information on tutorials and API reference can be found on reticulate's website.

486 questions
0
votes
1 answer

Use Reticulate to call file function

I want to use reticulate to reproduce this Python code in R: file("my.png").read() In R I have tried this: library(reticulate) funcs <- import_builtins() funcs$file("my.png").read() This errors saying that funcs$file is not a function. It isn't…
Carl
  • 5,569
  • 6
  • 39
  • 74
0
votes
1 answer

Write a lambda function in python via R's reticulate

I'm trying to write a simple python function like adding 5 to every item in a column, but I am unable to define a python function within the R environment. Is it possible to define a Python function within…
maloneypatr
  • 3,562
  • 4
  • 23
  • 33
-1
votes
1 answer

ModuleNotFoundError: No module named 'daq' from R reticulate

Goal I want to use undaqTools module via reticulate in R. Reproducible example I first installed python (version 3.10), created a virtual env, and installed all dependencies including undaqTools: library(reticulate) path_to_python <-…
umair durrani
  • 5,597
  • 8
  • 45
  • 85
-1
votes
1 answer

Error 1033 When Sourcing Python Script from R

I have a python script that sends a message to Discord. From R, I have executed the following succesfuly several times: library(reticulate) use_python('C:/Users/OfirL1/Miniconda3/', required = T) source_python('C:/Users/OfirL1/Google Drive…
Ronny Efronny
  • 1,148
  • 9
  • 28
-1
votes
2 answers

Numbers change after reading Pickle data (python) into R

I have a large dataset with unix epoch dates embedded in lists/dicts currently stored as a pickle file. I tried to import the pickle file into R using the reticulate package vis py_load_object() function. Other than, the unix epoch dates (in…
kurofune
  • 1
  • 1
-3
votes
2 answers

In Shiny, Python Virtual environment PERMISSION DENIED (Error 126)

We are building a User Interface APP (predicting a continuous variable through a machine learning model) through R Shiny. Since we built the machine learning model in Python3 sklearn module, we hope that we could write python codes in R Shiny to…
1 2 3
32
33