Skip to content

malformed DESCRIPTION error when trying to install git remote by tag #767

Open
@pj398

Description

@pj398

I'm trying to install an R package I host on Codeberg in a new R 4.5 install with {pak}. I thought that the best way to install the only tagged "release" of the package would be to specify the tag label in the pkg_install() call, like so:

pak::pkg_install("git::https://codeberg.org/pjphd/[email protected]")

However, this errors with

Error: 
! error in pak subprocess
Caused by error in `read.dcf(con)`:
! Line starting 'catchup/DESCRIPTION ...' is malformed!
---

Curiously, if I just install the latest dev version with pak::pkg_install("git::https://codeberg.org/pjphd/catchup.git"), it works just fine and installs the 0.0.1.9000 version.

The only difference between the DESCRIPTION in the tagged "v0.0.1" commit and the latest commit is the ".9000" at the end of the version number in the Version field, so it's unclear to me why it's considered "malformed" in the tagged commit.

I'm sure I'm missing something obvious here, but from the error message and looking at the package sources docs, I really can't see why this is going wrong. Any pointers appreciated.

R version: 4.5.0
pak version: 0.8.0.2
Platform: Fedora 42

Metadata

Metadata

Assignees

No one assigned

    Labels

    reprexneeds a minimal reproducible example

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions