When I save entire workspace, functions are saved and then loaded back (after I close/open R Studio). But here, save() and/or load() do not work, and I have only a string in my environment after loading.
How could I save a separate environment object to a file, not a complete workspace? I then need all objects inside that environment (my_env) to be loaded into .GlobalEnv in another session.
1) save/load Your code does work in that my_env is restored; however, load returns the names of the restored objects, not the objects themselves. The objects themselves are silently restored as a side effect rather than via the return value.