keep source without recompiling ?

Open
#753 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
5/5
Estimated time
Over a week
Newbie friendliness
35/100
Issue type
Feature
Clarity
Needs clarification
Activity status
Stale
Tech stack
r
Domain
tooling

Research direction

No files or tests are named. Start by tracing pak's binary installation path and its handling of the package .tar.gz, using the install.packages example as context; done means a binary installation can retain original source formatting and comments without requiring source compilation.

Written by the indexing model from the issue text.

Description

feature

I would love to be able to see original formatting and comments for every package I install.

This can be done by installing from source with "--with-keep.source" :

install.packages(package,  type = "source", INSTALL_opts = c("--with-keep.source"))`

But installing from source takes forever in some cases, so I don't love it as a default.

Would there be a way to install from binary, yet fetch the code from the .tar.gz. and have the code available at a minor installation cost?

Nowadays disk space is cheap enough, it doesn't make a lot of sense anymore to strip the source of IMO, so this might even be the default?

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

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from r-lib/pak

All issues in r-lib/pak

Similar issues

More C issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.