diff --git a/src/rwrapr/library.py b/src/rwrapr/library.py index 49633bb..ef7b474 100644 --- a/src/rwrapr/library.py +++ b/src/rwrapr/library.py @@ -13,7 +13,7 @@ def library(env_name: str, interactive: bool = True) -> Renv: Args: env_name (str): The name of the R package to load. - interactive (bool, optional): If `True`, interactively prompts the user + interactive (bool): If `True`, interactively prompts the user to install missing R packages. Defaults to `True`. Returns: @@ -40,7 +40,7 @@ def importr(env_name: str, interactive: bool = True) -> Renv: Args: env_name (str): The name of the R package to load. - interactive (bool, optional): If `True`, interactively prompts the user + interactive (bool): If `True`, interactively prompts the user to install missing R packages. Defaults to `True`. Returns: diff --git a/src/rwrapr/rattributes.py b/src/rwrapr/rattributes.py index 5c8ed4d..93084aa 100644 --- a/src/rwrapr/rattributes.py +++ b/src/rwrapr/rattributes.py @@ -22,8 +22,7 @@ def get_Rattributes(x: Any, exclude: list[str] | None = None) -> Any: attributes } - """ - ) + """) return attributes(x, exclude) diff --git a/src/rwrapr/renv.py b/src/rwrapr/renv.py index 7f46151..0d647f1 100644 --- a/src/rwrapr/renv.py +++ b/src/rwrapr/renv.py @@ -40,7 +40,7 @@ def __init__(self, env_name: str | None, interactive: bool = True) -> None: Args: env_name (str | None): The name of the R package to load. If `None` or an empty string, the environment is not initialized. - interactive (bool, optional): If True, prompts the user to install missing R packages. Defaults to True. + interactive (bool): If True, prompts the user to install missing R packages. Defaults to True. """ if (env_name is None) or (env_name == ""): self.__base_lib__: rpkg.Package | None = None