Re: [R-pkg-devel] Problem with package containing spatial data

2023-02-09 Thread Igor L
tach using .onAttach(): > > .onAttach <- function(libname, pkgname) { > .build_internal_files() ## lazy loading of the internal data > } > > It seems to work... > > Note that .onAttach() is a standard way of defining a function that is > recognis

[R-pkg-devel] Problem with package containing spatial data

2023-02-08 Thread Igor L
Hello all, I'm developing a package that contains spatial data about public safety in Rio de Janeiro. The problem is that when I use the usethis::use_data function which transforms the shapefile data into a file with the .rda extension, I cannot use the geometry attribute to create a map. E.g.:

Re: [R-pkg-devel] How to decrease time to import files in xlsx format?

2022-10-05 Thread Igor L
processing that will lead to SLOWER processing if mis-used. > > On October 4, 2022 11:29:54 AM PDT, Igor L wrote: > >Hello all, > > > >I'm developing an R package that basically downloads, imports, cleans and > >merges nine files in xlsx format updated monthly from

[R-pkg-devel] How to decrease time to import files in xlsx format?

2022-10-04 Thread Igor L
Hello all, I'm developing an R package that basically downloads, imports, cleans and merges nine files in xlsx format updated monthly from a public institution. The problem is that importing files in xlsx format is time consuming. My initial idea was to parallelize the execution of the read_xlsx

[R-pkg-devel] Non-ASCII and CRAN Checks

2022-09-19 Thread Igor L
Hello everybody, I'm testing my package with the devtools::check() function and I got a warning about found non-ASCII strings. These characters are in a dataframe and, as they are names of institutions used to filter databases, it makes no sense to translate them. Is there any way to make the ch

Re: [R-pkg-devel] Possible bug report/false positive

2022-01-06 Thread Igor L
Ivan, Declaring the variables inside the function solved the problem (protocolo <- X1 <- X2 <- ... X21 <- NULL). Thanks for the help and suggestions for improving the code. Best Regards, Igor Em qui., 6 de jan. de 2022 às 11:37, Ivan Krylov escreveu: > On Wed, 5 Jan 2022 17:15:20

[R-pkg-devel] Possible bug report/false positive

2022-01-06 Thread Igor L
To whom it may concern, I'm using devtools::check() and trying to upload my package to CRAN (The code is available in github ), but I'm not able to understand why the function is showing 1 NOTE: -- R CMD check results