Community & Support
Learn
Marketplace
Discussions
Categories
Discussions
General
Platform
Academic
Partner
Regional
User Groups
Documentation
Events
Altair Exchange
Share or Download Projects
Resources
News & Instructions
Programs
YouTube
Employee Resources
This tab can be seen by employees only. Please do not share these resources externally.
Groups
Join a User Group
Support
Altair RISE
A program to recognize and reward our most engaged community members
Nominate Yourself Now!
Home
Discussions
Community Q&A
Persistance in the R environment
tennenrishin
Hi RM Support
I have a RM process that invokes a R script deep within its iterative structures, thousands of times.
The R script first defines a number of lengthy functions, which it then proceeds to use. Unfortunately this means that the same functions are defined/loaded again and again, for each call to the Execute R Script operator, resulting in substantial overhead, I presume.
I would much prefer to define the functions once (in a separate R script), in a way that allows their existence to persist so that they can be called from subsequent executions of the iterated R script operator.
Is this possible, or does each Execute R Script operator necessarily start and end with a cleared environment?
Regards,
Isak
Find more posts tagged with
AI Studio
R
Accepted answers
All comments
MariusHelf
Hi Isak,
you can output arbitrary objects from the Execute Script (R) operator and use them as input for other R operators.Thus you could create your functions once and pass them to the operators using them.
If you have any questions related to this please post them here.
Best regards,
Marius
Quick Links
All Categories
Recent Discussions
Activity
Unanswered
日本語 (Japanese)
한국어(Korean)
Groups