Package 'rgeowheels'

Title: Convenient Access to 'Python' 'Wheel' Packages Prepared for 'Windows'
Description: Downloads pre-compiled 'Windows' 'wheel' files (.whl) for 'Python' geospatial packages from <https://github.com/cgohlke/geospatial-wheels>. These are unofficial binary installers for some geospatial libraries prepared by Christoph Gohlke. Wheels for various packages, 'Python' versions, and architectures are made available via 'GitHub' releases, providing the ability to revert to prior versions when needed.
Authors: Andrew G. Brown
Maintainer: Andrew G. Brown <[email protected]>
License: CC0
Version: 0.0.5
Built: 2024-12-19 07:29:19 UTC
Source: https://github.com/brownag/rgeowheels

Help Index


Install Python Wheels From 'geospatial-wheels' Repository

Description

Used to download and install the latest versions of wheels available from https://github.com/cgohlke/geospatial-wheels.

Usage

install_wheel(
  package,
  version = "latest",
  pyversion = "latest",
  architecture = "win_amd64",
  python = get_rgeowheels_python(),
  destdir = tempdir(),
  url_only = FALSE,
  download_only = FALSE
)

Arguments

package

Python package name to install. e.g. "rasterio"

version

Python package version to install. Default "latest" determines latest version available from asset list (considers pyversion if set).

pyversion

Python version to install package for. Default "latest" determines latest version available from asset list.

architecture

Python package version to install. Default "win_amd64", alternatives include ⁠"win_arm64⁠" and "win32".

python

Path to Python executable to use for install. Default: get_rgeowheels_python()

destdir

Destination directory for downloaded wheel file. Default: tempdir()

url_only

Return the URL of the .whl file without downloading? Default: FALSE

download_only

Download .whl file without attempting install? Default: FALSE

Value

Called for side effects (download and install a Python wheel). Returns character containing path to .whl file when url_only=TRUE or download_only=TRUE.


List assets available from "geospatial-wheels" repository

Description

List assets available from "geospatial-wheels" repository

Usage

list_rgeowheels_assets(release = NULL, update_cache = FALSE)

Arguments

release

Specify custom release to list assets for. Default: NULL

update_cache

Force update of wheel download index? Default: FALSE

Value

A data.frame containing package, version, pyversion, architecture and other metadata about each asset in a release.


Get or Set Python Path

Description

Set the path the Python binary used to run installation commands. May be a system or virtual/conda environment.

Usage

set_rgeowheels_python(x)

get_rgeowheels_python()

Arguments

x

Path to python or python3 binary.

Value

character Value of option "rgeowheels.python", or, if set, the value of the system environment variable "R_RGEOWHEELS_PYTHON". If neither are set, then the result of Sys.which("python") (or Sys.which("python3") if the former fails).