We used to be able to modify cdf path within save_gs function call because ncdfFlowSet was stored in environment and such change will take effect on the input gs/gslist.
However, it is not the case any more due to the latest changes in RGLab/flowWorkspace#99
Apparently we can fix this by simply reloading it after saving
#will break the current gslist due to the moving of cdf file
save_gslist(gslist, newPath, cdf = "move", ...)
#have to reload it in order to continue to use gslist
gslist <- load_gslist(newPath)
However, it is lots of overhead by reloading (for large data set).
Before we come up an elegant way of updating cdf path of original gs/gslist , we will provide a specialized API save_gs_labkey , which is essentially equivalent to save_gslist + lightweight reloading
We used to be able to modify
cdf
path withinsave_gs
function call becausencdfFlowSet
was stored inenvironment
and such change will take effect on the inputgs
/gslist
.However, it is not the case any more due to the latest changes in RGLab/flowWorkspace#99
Apparently we can fix this by simply reloading it after saving
However, it is lots of overhead by reloading (for large data set).
Before we come up an elegant way of updating
cdf
path of originalgs
/gslist
, we will provide a specialized APIsave_gs_labkey
, which is essentially equivalent tosave_gslist
+lightweight
reloading