Skip to content

Updating packages via R-update-package is broken #58

@paulkitt

Description

@paulkitt

When updating packages via the role the 'R-update-package' results in this error:

failed: [... (item={'name': 'psych', 'type': 'cran', 'state': 'updated'}) => changed=false 
  ansible_loop_var: item
  cmd:
  - /usr/local/bin/R-update-package
  - psych
  - cran
  - /usr/local/lib/R/site-library
  delta: '0:00:01.354098'
  end: '2024-04-02 11:24:04.696954'
  item:
    name: psych
    state: updated
    type: cran
  msg: non-zero return code
  rc: 1
  start: '2024-04-02 11:24:03.342856'
  stderr: |-
    Error in download.file(url = paste0(repos, "/PACKAGES.rds"), destfile = dest,  :
      downloaded length 0 != reported length 0
    Calls: withCallingHandlers ... tryCatchList -> tryCatchOne -> doTryCatch -> download.file
    Execution halted
  stderr_lines: <omitted>
  stdout: ''
  stdout_lines: <omitted>

I tried to use the R update script directly resulting in the same problem:

./R-update-package psych cran /usr/local/lib/R/site-library 
Error in download.file(url = paste0(repos, "/PACKAGES.rds"), destfile = dest,  : 
  downloaded length 0 != reported length 0
Calls: withCallingHandlers ... tryCatchList -> tryCatchOne -> doTryCatch -> download.file
Execution halted

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions