Skip to content

Example of postgresWaitForNotify() needs callr, and the vignette hangs, in a noSuggests check with a server #681

Not planned

Description

@krlmlr

With a PostgreSQL server available, the example of postgresWaitForNotify() fails when the suggested packages are not installed, and rebuilding the work-queue vignette hangs. Seen in R-hub's nosuggests container with a server, through the stopgap workflows of #680, on the package code of 1.5.0's release head c324cdb. The run was cancelled after more than 40 minutes to get the log: https://github.com/r-dbi/RPostgres/actions/runs/46315715930.

The example runs library(callr) unconditionally inside @examplesIf postgresHasDefault() (R/PqConnection.R, around line 111), although callr is only in Suggests. On CRAN, postgresHasDefault() is false, so neither the example nor the vignette code runs there. 1.4.10 has the same example, so this is not new in 1.5.0. Expected: without callr, the example is skipped (@examplesIf postgresHasDefault() && rlang::is_installed("callr")), and the vignette does not hang without its suggested packages.

  • Guard the example on callr being installed.
  • Find why the vignette rebuild hangs in a noSuggests setup with a server, and guard it.

Generated by Claude Code

Activity

  1. added
    status: open
    on Nov 29, 2026
  2. krlmlr commented on Nov 29, 2026

    @krlmlr
    MemberAuthor

    Closed to keep this issue tracker for public issues. The work is still open, and the status: open label records that.


    Generated by Claude Code

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    status: open

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions