Someone else definitely tried this before using ChatGPT, but its ability to convert Python code (from the web) into working R code (or vice versa) seems a very useful feature. It even explains the differences in approach taken and libraries used...