Save an object to be reused by other modules?
Posted: Thu Aug 04, 2022 1:01 am
I successfully wrote one or two modules but they are "standalone", work independent of others.
Can a module save an object that can be accessed by other modules?
If yes, how can a module find and access these objects?
A common workflow in R is calling a main function to do an analysis, and call other functions on the output. E.g.
lavaan::sem(): Do structural equation modeling
lavaan::parameterEstimates(): Get parameter estimates from the output of lavaan::sem()
There may be reason to separate these steps. For example, the first part can be time consuming and so we may not want to repeat it just due to minor changes in other calls. This also allows developers to write function to do things on the output of the main functions.
Can we make jamovi modules to do something similar?
-- Shu Fai
Can a module save an object that can be accessed by other modules?
If yes, how can a module find and access these objects?
A common workflow in R is calling a main function to do an analysis, and call other functions on the output. E.g.
lavaan::sem(): Do structural equation modeling
lavaan::parameterEstimates(): Get parameter estimates from the output of lavaan::sem()
There may be reason to separate these steps. For example, the first part can be time consuming and so we may not want to repeat it just due to minor changes in other calls. This also allows developers to write function to do things on the output of the main functions.
Can we make jamovi modules to do something similar?
-- Shu Fai