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

roxygen2:::tokenise_block() causes "vector memory limit reached" error when RMariaDB package is loaded #1676

Open
uhkeller opened this issue Nov 11, 2024 · 0 comments

Comments

@uhkeller
Copy link

When the RMariaDB package is loaded before calling roxygen2:::tokenise_block(), the call results in a "vector memory limit reached" error. When tokenise_block() has already been called before RMariaDB is loaded, subsequent calls to it do not produce this error. I can reproduce this 100% of the time in both RStudio and Positron.

library(RMariaDB)

roxygen2:::tokenise_block(
  "#' Some text
#' @export
fun <- function(x) x",
  "test.R",
  offset = 1
)
#> Error: vector memory limit of 32.0 Gb reached, see mem.maxVSize()

Created on 2024-11-11 with reprex v2.1.1

R version 4.4.2 (2024-10-31)
Platform: aarch64-apple-darwin20
Running under: macOS Sequoia 15.1

Matrix products: default
BLAS:   /System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vecLib.framework/Versions/A/libBLAS.dylib 
LAPACK: /Library/Frameworks/R.framework/Versions/4.4-arm64/Resources/lib/libRlapack.dylib;  LAPACK version 3.12.0

locale:
[1] en_US.UTF-8/en_US.UTF-8/en_US.UTF-8/C/en_US.UTF-8/en_US.UTF-8

time zone: Europe/Berlin
tzcode source: internal

attached base packages:
[1] stats     graphics  grDevices utils     datasets  methods   base     

other attached packages:
[1] RMariaDB_1.3.2

loaded via a namespace (and not attached):
 [1] R6_2.5.1          bit_4.5.0         xfun_0.49         magrittr_2.0.3    glue_1.8.0        stringr_1.5.1     knitr_1.49       
 [8] pkgconfig_2.0.3   bit64_4.5.2       lifecycle_1.0.4   xml2_1.3.6        cli_3.6.3         DBI_1.2.3         vctrs_0.6.5      
[15] compiler_4.4.2    purrr_1.0.2       rstudioapi_0.17.1 tools_4.4.2       hms_1.1.3         evaluate_1.0.1    rlang_1.1.4      
[22] roxygen2_7.3.2    stringi_1.8.4  
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