GithubHelp home page GithubHelp logo

Comments (2)

gaborcsardi avatar gaborcsardi commented on August 24, 2024

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.

mdsumner avatar mdsumner commented on August 24, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.