Rstudio python ide7/11/2023 ![]() The reason we would ideally want to run the code in the RStudio console using reticulate is so that we can inspect the objects in the Environment pane etc. Similarly, trying to import other packages, such as stats or the tidyverse, also fails with the same error. # An error report file with more information is saved as: ![]() Default location: Core dumps may be processed with "/usr/share/apport/apport %p %s %c %d %P %E" (or dumping to /srv/shiny-server/FlightBag/core.133533) # Java VM: OpenJDK 64-Bit Server VM (11.0.15+10-Ubuntu-0ubuntu0.20.04.1, mixed mode, sharing, tiered, compressed oops, g1 gc, linux-amd64) # A fatal error has been detected by the Java Runtime Environment: However, when I try the same code in the RStudio console using reticulate, it crashes when importing our FlightBag pakage: FlightBag = importr('FlightBag') Result = robjects.r('AAPL_US', retdata = True) The rpy2 python package allows access to R functions from Python, so this seems like a good place to start, and we have a proof of concept that works when run directly in a Python REPL in the RStudio terminal: import rpy2.robjects as robjectsįrom import importrįlightBag = importr('FlightBag') # FlightBag is our internal package. For example, we have a getprices R function that retrieves stock prices from our database, which we would ideally like to use to get these data into the Python models, rather than write a Python "get prices" funcion. For example, there can be IDEs for Python, PHP, JavaScript or even for Android Development. Usually IDEs are specialized in a single language or platform. ![]() ![]() Other than having a code completion tools, IDEs usually have integrated build tools and debuggers as well. However, we would like to leverage our existing R infrastructure (we use RStudio server on Ubuntu, with our data stored in MariaDB). An IDE is a tool that is not only used for writing code. We would like to use Python in RStudio for some financial models. ![]()
0 Comments
Leave a Reply. |