malformed DESCRIPTION error when trying to install git remote by tag
Nobody has claimed this yet.
Assessment
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Newbie friendliness
- 35/100
Research direction
Reproduce the failure with pak::pkg_install() using the tagged and untagged Codeberg URLs, then compare the linked DESCRIPTION files and consult the pak package-source documentation. Trace how the git tag is fetched and how DESCRIPTION is read; done means the v0.0.1 tag installs without the malformed DESCRIPTION error.
Written by the indexing model from the issue text.
Description
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/catchup.git@v0.0.1")
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
- Dominant language
- C
- Stars
- 821
- Forks
- 88
- Avg merge
- 17m
- Merged PRs (30d)
- 1
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from r-lib/pak
-
documentation upkeep
Difficulty 1/5 Under an hour Newbie friendliness 68/100
-
Difficulty 3/5 1-2 days Newbie friendliness 72/100
-
Difficulty 4/5 3-5 days Newbie friendliness 38/100
-
Difficulty 3/5 1-2 days Newbie friendliness 68/100
-
Difficulty 4/5 3-5 days Newbie friendliness 30/100
Similar issues
-
[adam] AdamNet network read doesn't cap to MAX_ADAM_PACKET_LEN, overflows client receive buffers Open
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
FujiNetWIFI/fujinet-firmware#1649 · 2 comments ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
HarbourMasters/Shipwright#7229 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
riscv-software-src/riscv-isa-sim#2435 · 1 comment ·
-
bug Self Built Image SNAPSHOT Supported Device target/ramips
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 76/100