Comments (2)
pak only detects proper system packages, that were installed with the system package manager. If you install packages other ways, e.g. the traditional ./configure; make install
way, those are not detected. This is usually not a big problem, even if pak installs extra packages, because the manually installed packages go into /usr/local/
, which takes priority over system packages in /usr
.
Nevertheless, you can opt out from system dependency installation by setting the PKG_SYSREQS=false
env var or the pkg.sysreqs=FALSE
option: https://pak.r-lib.org/reference/pak-config.html#pak-configuration
from pak.
ok thanks!
it still installs though it looks promisingly like it's not going to do that, I'll keep exploring since this is not a very familar area for me - I guess the installs are bundled with everything somehow on the setup I'm using.
options(pkg.sysreqs=FALSE)
> pak::pak("terra")
v Loading metadata database ... done
> Will update 1 package.
> Will download 1 package with unknown size.
+ terra 1.7-69 > 1.7-65 [dl] + x libgdal-dev, x gdal-bin, v libgeos-dev, v libproj-dev, v libsqlite3-dev
x Missing 2 system packages. You'll probably need to install them manually:
+ gdal-bin - terra
+ libgdal-dev - terra
? Do you want to continue (Y/n) Y
i Getting 1 pkg with unknown size
v Got terra 1.7-65 (x86_64-pc-linux-gnu-ubuntu-22.04) (4.21 MB)
v Downloaded 1 package (4.21 MB) in 3.4s
v Installed terra 1.7-65 (1s)
v 1 pkg + 1 dep: kept 1, upd 1, dld 1 (4.21 MB) [18.2s]
> terra::gdal()
[1] "3.4.1"
(would be 3.8.2 with rocker as above)
EDIT:
ok, i'm sorry - it's right on the rocker example, my bad. I'm doing something wrong in my docker setup elsewhere. Please ignore
from pak.
Related Issues (20)
- Intermittent "not a valid binary" error during package install HOT 8
- `pak` in Github action fails to install `jpeg` package HOT 5
- `upgrade = FALSE` is ignored when `options(pkg.platforms)` is set
- Error when trying to install spacific packages: "is not a valid R package, it is an empty archive"
- Can't install package from tarball HOT 4
- Suggests dependencies aren't included if package already installed HOT 2
- pak local install overwrites newer package version HOT 7
- pkg_deps gets wrong dependencies (for past versions) HOT 4
- Use `testthat::with_mock()` instead of mockery
- Messaging around `local_install()` is confusing
- pak can not resolve correct package version, only tries the latest. HOT 1
- `pak::pak("MLopez-Ibanez/irace")` does not record RemoteSha or equivalent unlike `devtools::install_github("MLopez-Ibanez/irace")` HOT 3
- Release pak 0.8.0
- Enhance pkg_deps data.frame functionalities
- DOC: Shortlist of changes relative to `remotes` HOT 1
- Silent install/upgrade packages HOT 2
- Consider changing default number of cores used HOT 2
- pak doesn't work with latest versions of littler in docker images HOT 1
- Change option `repos` cause `lockfile_create` to hang forever HOT 3
- Outdated metadata generated by `lockfile_create()`
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from pak.