On this page:
10.1 Running Req from Racket
req
req-local-chain?
req-reinstall-local?
10.2 Parsing Req files
req-file->hash
10.3 Req Version
VERSION
MAJOR
MINOR
PATCH
8.12

10 Racket API🔗ℹ

The following documents how to use Req facilities in pure Racket code.

10.1 Running Req from Racket🔗ℹ

 (require req/req) package: req-lib

procedure

(req req-hash action [action-argument])  void?

  req-hash : hash?
  action : symbol?
  action-argument : (or/c #false string?) = #false
Executes the specified Req action.

Available actions are described in the Req command-line interface documentation.

parameter

(req-local-chain?)  boolean?

(req-local-chain? boolean)  void?
  boolean : boolean?
 = #true
Toggles if when a singular local package installation is specified (--l flag), its dependencies will be checked whether each of required local packages is installed.

parameter

(req-reinstall-local?)  boolean?

(req-reinstall-local? boolean)  void?
  boolean : boolean?
 = #false
Toggles whether any local packages that are already installed when they are requested for installation will be reinstalled (first removed and then installed again).

10.2 Parsing Req files🔗ℹ

 (require req/util/req-file-util) package: req-lib

procedure

(req-file->hash a-req-file-path    
  [a-project-root-path])  hash?
  a-req-file-path : path-string?
  a-project-root-path : path-string? = #false
Produces a hash object accepted by the req function.

If the a-project-root-path is #false or not given it is derived from a-req-file-path file directory.

10.3 Req Version🔗ℹ

 (require req/version) package: req-lib

value

VERSION : string?

Currently it is equal to "5.5.1".

Currently it is equal to 5.

Currently it is equal to 5.

Currently it is equal to 1.