I have a python dictionary and want to import it in R.
d = {'X1':[[1,2,3], [10,20]], 'X2':[4,5,6,7]}
In "R" I want it as
> d
$X1
$X1[[1]]
[1] 1 2 3
$X1[[2]]
[1] 10 20
$X2
[1] 4 5 6 7
How can I export/save the python dictionary and read it in R?