I have downloaded the Lock5Data from https://cran.r-project.org/web/packages/Lock5Data/index.html
for windows r-release: Lock5Data_3.0.0.zip
and tried to load a dataset from there in a python script (with ChatGPT's help) as below:
import pyreadr
StudentSurvey = pyreadr.read_r('Lock5Data\data\StudentSurvey.rdata')['StudentSurvey']
print(StudentSurvey.head())
and I am getting this error:
SyntaxError: (unicode error) 'unicodeescape' codec can't decode bytes in position 2-3: truncated \UXXXXXXXX escape
How can I solve this issue?
I have tried specifying the path for the datasets in my local computer, but it's still the same.