From 7f149364372d2ceda5d39566c650c74f1787d378 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?I=C3=B1aki=20=C3=9Acar?= Date: Thu, 10 Aug 2023 20:17:31 +0200 Subject: [PATCH] update interface description --- README.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index ea5e4da..8b8e69d 100644 --- a/README.md +++ b/README.md @@ -197,10 +197,10 @@ $ Rscript -e bspm:::scripts mass_move --run user1 [user2 ...] [lib1 [lib2 ...]] New backends for other package managers can be added to `inst/service/backend`. Each backend must implement the following functions: -- `def discover() -> dict({ "prefixes" : list, "exclusions" : list })` -- `def available(prefixes : list, exclusions : list) -> list` -- `def install(prefixes : list, pkgs : list, exclusions : list) -> list` -- `def remove(prefixes : list, pkgs : list, exclusions : list) -> list` +- `def discover() -> dict({ "prefixes": list, "exclusions": list })` +- `def available(prefixes: list, exclusions: list) -> list` +- `def install(prefixes: list, pkgs: list, exclusions: list, weak_deps: Optional[bool]=None) -> list` +- `def remove(prefixes: list, pkgs: list, exclusions: list) -> list` The last two functions receive a list of prefixes, a list of R package names and a list of exclusions, and must return a list with those package names that could