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

dggridR back on CRAN #42

Closed
mstrimas opened this issue Apr 22, 2020 · 30 comments
Closed

dggridR back on CRAN #42

mstrimas opened this issue Apr 22, 2020 · 30 comments
Assignees
Milestone

Comments

@mstrimas
Copy link

I just noticed dggridR has been archived, any intention of getting it back on CRAN?

@r-barnes
Copy link
Owner

I am working on getting it back on CRAN. The process is onerous. Thank you for checking in :-)

@r-barnes r-barnes self-assigned this Apr 29, 2020
@r-barnes r-barnes added this to the v2.0.4 milestone Apr 29, 2020
@lvalnegri
Copy link

I've just noticed dggridR has been archived again :-(

@r-barnes
Copy link
Owner

Thanks for the heads-up! I think a couple of URLs were missing slashes. I should be able to get it resubmitted later today.

@r-barnes
Copy link
Owner

Okay, it's resubmitted.

@jens-daniel-mueller
Copy link

Hi Richard,
I would like to use dggrid for the first time, but currently it seems to be archived on CRAN.
Do I see this correctly?
And if yes, do you plan to bring it back to CRAN?
And if yes, any idea when it could become available again?
Thanks for a quick update on the situation!
Jens

@r-barnes
Copy link
Owner

Jens,
I'm aware of the situation. CRAN regularly audits packages and found that dggridR has memory leaks. While these shouldn't affect results, it does mean that dggridR can't return to CRAN until they're fixed. The leaks themselves come from upstream libraries; I'm working with the authors to fix those. In the meantime, you could try:

devtools:::install_github("r-barnes/dggridR")

@jens-daniel-mueller
Copy link

Dear Richard,
thanks for updating us on the situation. I keep my fingers crossed that you guys manage to solve the leak issues in the upstream libraries, and will rely on the installation from github for now. Dropping a short note here when the package is back on CRAN would be very much appreciated.
Cheers!

@edzer
Copy link
Collaborator

edzer commented Sep 3, 2021

@r-barnes it seems that the upstream memory issues have been solved: sahrk/DGGRID#24 - have you tried updating & resubmitting this package to CRAN?

@r-barnes
Copy link
Owner

r-barnes commented Sep 4, 2021

@edzer : That's true. The API has changed, though. I'm actually working today on building a new bridge between R and that API.

@r-barnes
Copy link
Owner

r-barnes commented Sep 5, 2021

@edzer : I've got things apparently working with the newest version of DGGRID now. That's available on the branch "https://github.com/r-barnes/dggridR/tree/update_from_upstream". I haven't had much chance to test it yet.

Unfortunately, I am probably not able to get it on CRAN yet. There are some Valgrind issues that need to be dealt with and CRAN tends to be very (overly?) strict about these. Kevin's usually pretty good at responding, though, so I hope we can move this forward.

@willgearty
Copy link

willgearty commented Jul 20, 2022

@r-barnes It looks like all the DGGRID issues have been resolved; any chance this will be back on CRAN anytime soon?

@r-barnes
Copy link
Owner

@willgearty - Yes, the only issue left I'm aware of is something with BuildVignette not working, that and working up the energy to interact with the CRAN submission process again. I'll try to prioritize getting on this.

@edzer
Copy link
Collaborator

edzer commented Jul 21, 2022

FYI: CRAN submissions will be offline from Jul 22, 2022 to Aug 5, 2022 (CRAN team vacation and maintenance work).

@rion-saeon
Copy link

@r-barnes the package is not compatible with R4.2.2

@r-barnes
Copy link
Owner

r-barnes commented Dec 9, 2022 via email

@rion-saeon
Copy link

A remotes install produced the following log that I quitted. Could not tell whether a recurring loop was happening preventing the install to finish.

remotes_install_log.txt

@edzer
Copy link
Collaborator

edzer commented Dec 9, 2022

Don't quit it, it seems to just not have finished. How long did you wait?

@r-barnes
Copy link
Owner

r-barnes commented Dec 9, 2022 via email

@edzer
Copy link
Collaborator

edzer commented Dec 9, 2022

I ran a R CMD check --use-valgrind, and did not stumble upon valgrind errors, but there was another error which for some reason was not caught during check without using valgrind:
00check.log.txt

@rion-saeon
Copy link

rion-saeon commented Dec 9, 2022

Take 2. Stand by...

edzer added a commit to edzer/dggridR that referenced this issue Dec 9, 2022
@rion-saeon
Copy link

Success:

remotes::install_github("r-barnes/dggridR")

library(dggridR)

#Loading required package: rlang Attaching package: ‘rlang’ The following objects are masked from ‘package:purrr’: %@%, as_function, flatten, flatten_chr, flatten_dbl, flatten_int, flatten_lgl, flatten_raw, invoke, splice

@edzer
Copy link
Collaborator

edzer commented Dec 9, 2022

Now, while checking under valgrind, reduced to

--- re-building ‘dggridR.Rmd’ using rmarkdown
Loading required package: dplyr

Attaching package: 'dplyr'

The following objects are masked from 'package:stats':

    filter, lag

The following objects are masked from 'package:base':

    intersect, setdiff, setequal, union

Loading required package: rlang
Loading required package: sf
Linking to GEOS 3.10.2, GDAL 3.4.3, PROJ 8.2.1; sf_use_s2() is TRUE
Loading required package: sp
Quitting from lines 16-47 (dggridR.Rmd) 
Error: processing vignette 'dggridR.Rmd' failed with diagnostics:
Problem while computing `..1 = lengths(.predicate(x, y, ...)) > 0`.
Caused by error in `wk_handle.wk_wkb()`:
! Loop 0 is not valid: Edge 3 crosses edge 6
--- failed re-building ‘dggridR.Rmd’

@edzer
Copy link
Collaborator

edzer commented Dec 9, 2022

For some context:

@edzer
Copy link
Collaborator

edzer commented Dec 9, 2022

R CMD check --use-valgrind checks cleanly, with this PR.

@edzer
Copy link
Collaborator

edzer commented Dec 14, 2022

Let me know if you want help modifying all sprintf instances into using snprintf - I just did a large edit of lwgeom (also a larger external library) here: r-spatial/lwgeom@2d157e4

r-barnes added a commit that referenced this issue Dec 23, 2022
might help fix valgrind issue in #42
@r-barnes
Copy link
Owner

@edzer - That'd be great, if you have time.

edzer added a commit to edzer/dggridR that referenced this issue Dec 23, 2022
@edzer
Copy link
Collaborator

edzer commented Dec 23, 2022

OK, here you go!

@r-barnes
Copy link
Owner

@edzer - Thanks! I'm attempting to build again now.

@edzer
Copy link
Collaborator

edzer commented Jan 13, 2023

Did you succeed?

@r-barnes
Copy link
Owner

@edzer - After some more fiddling dggridR has passed all the pre-submission checks and has gone on to manual review. Thank you for your help with this.

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

7 participants