Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

On windows only, integer numpy arrays convert to R double arrays #1473

Open
t-kalinowski opened this issue Sep 6, 2023 · 0 comments
Open

Comments

@t-kalinowski
Copy link
Member

library(reticulate)
x <- array(1:64, c(4, 4, 4)) 
y <- r_to_py(x)
z <- py_to_r(y)

typeof(x)
#> [1] "integer"
y$dtype
#> dtype('int32')
typeof(z)
#> [1] "double"
stopifnot(typeof(x) == typeof(z))
#> Error: typeof(x) == typeof(z) is not TRUE

Created on 2023-09-06 with reprex v2.0.2

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant