If I define the following python function in a file test.py.
def my_function():
x = 1920272742080
return x
reticulate::source_python('~/test.py')
I then get the following output if I run in Rstudio the python function.
> my_function()
[1] -1
What am I doing wrong here as you would expect 1920272742080 in stead of -1.
If I make a second function my_function2()
def my_function2():
x = 19
return x
I then get the output I would expect
> my_function2()
[1] 19