I want to read a python file in R and I am using reticulate package for that.
I have data <- readLAS("TestSite2-4.las") where I am reading a las file and in my python code, I want to read this file: inFile = laspy.file.File("TestSite2-4.las", mode="r")
How do I declare, say, the file name string in R and then when I read source_python("main.py") it takes this variable as file name in inFile?