On https://github.com/njnmco/hopticulate/issues/1 someone asked me how to port the below python code to R:
trials_merged = trials_from_docs(list(trials1) + li