Skip to content

Commit

Permalink
typo 2
Browse files Browse the repository at this point in the history
  • Loading branch information
LouiseDck committed Sep 10, 2024
1 parent c5a763b commit 311a8d4
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions book/in_memory/pitfalls.qmd
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ is.integer(int_ex)

This can often lead to errors when using `reticulate`! If you're calling a Python function and provide it with just a number in R, it probably won't be recognised as an integer, leading to weird errors:

```{r float_integer_error, error=true}
```{r float_integer_error, error=TRUE}
library(reticulate)
bi <- reticulate::import_builtins()
Expand All @@ -65,4 +65,3 @@ This is easily fixed by specifiying integers:
bi$list(bi$range(0L, 5L))
```


0 comments on commit 311a8d4

Please sign in to comment.