I am using the Tensorflow package in R, and I need to merge 2 dictionaries to create a single feed.dict.
In python this is simple. What is the best way to get this done in R? For reasons out of my control, I cannot use Python directly.
EDIT
I have come up with the following work around. If anyone has a better solution please post an answer.
mergeDictionaries = function(dict1, dict2){
list1 = py_to_r(dict1)
list2 = py_to_r(dict2)
r_to_py(c(list1, list2))
}