randy3k / radian

A 21 century R console
MIT License
1.96k stars 73 forks source link

rpytools module cannot be found if you preload {reticulate} #399

Open jooyoungseo opened 1 year ago

jooyoungseo commented 1 year ago

The following issue is only found in radian not in legacy Rterm.

Reprex

  1. Do the following in R:
usethis::edit_r_profile()

# Add the following line and save
options(defaultPackages = c(
  getOption("defaultPackages"),
  "reticulate"
))
  1. Restart a new radian session.

  2. Press ~ to start reticulate::repl_python().

Current Behavior

image

Expected Behavior

rpytools needs to be found regardless of whether {reticulate} is preloaded or not.

randy3k commented 1 year ago

What versions of R and reticulate are you using?

jooyoungseo commented 1 year ago
> packageVersion("reticulate")                                                                                                                         
                    [1] '1.28'                                                                                                                                              

radian version: 0.6.4                                                                                                                                  

r executable: C:\PROGRA~1\R\R-42~1.2\bin\R                                                                                                             

r version: 4.2.2                                                                                                                                       

python executable: C:\ProgramData\Miniconda3\python.exe                                                                                                

python version: 3.9.16