Occasionally, when I use the ‘reticulate’ package in RStudio, it doesn’t work. I’ll be executing Python chunks like it’s nobody’s business, then all of the sudden, I’ll get an error and my Python chunks that ran great previously will stop working.
Occasionally, it will be the ‘r setup’ code chunk that caches code chunks globally that needs to be disabled:
\```{r setup, include=TRUE}
knitr::opts_chunk$set(cache=TRUE)
\```
LS0tDQp0aXRsZTogIkZpeGluZyBycHl0b29scyBFcnJvciINCm91dHB1dDoNCiAgaHRtbF9kb2N1bWVudDogDQogICAgaGlnaGxpZ2h0OiB6ZW5idXJuDQogICAgY29kZV9kb3dubG9hZDogdHJ1ZQ0KICAgIGluY2x1ZGVzOg0KICAgICAgaW5faGVhZGVyOiBoZWFkZXIuaHRtbA0KLS0tDQpgYGB7ciBzZXR1cCwgaW5jbHVkZT1GQUxTRX0NCmtuaXRyOjpvcHRzX2NodW5rJHNldChjYWNoZT1UUlVFKQ0KYGBgDQoNClwgDQpcIA0KXCANCg0KKyBPY2Nhc2lvbmFsbHksIHdoZW4gSSB1c2UgdGhlICdyZXRpY3VsYXRlJyBwYWNrYWdlIGluIFJTdHVkaW8sIGl0IGRvZXNuJ3Qgd29yay4gSSdsbCBiZSBleGVjdXRpbmcgUHl0aG9uIGNodW5rcyBsaWtlIGl0J3Mgbm9ib2R5J3MgYnVzaW5lc3MsIHRoZW4gYWxsIG9mIHRoZSBzdWRkZW4sIEknbGwgZ2V0IGFuIGVycm9yIGFuZCBteSBQeXRob24gY2h1bmtzIHRoYXQgcmFuIGdyZWF0IHByZXZpb3VzbHkgd2lsbCBzdG9wIHdvcmtpbmcuDQoNCisgT2NjYXNpb25hbGx5LCBpdCB3aWxsIGJlIHRoZSAnciBzZXR1cCcgY29kZSBjaHVuayB0aGF0IFtjYWNoZXNdKGh0dHBzOi8veWlodWkub3JnL2VuLzIwMTgvMDYvY2FjaGUtaW52YWxpZGF0aW9uLykgY29kZSBjaHVua3MgZ2xvYmFsbHkgdGhhdCBuZWVkcyB0byBiZSBkaXNhYmxlZDoNCmBgY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