diff --git a/.gitignore b/.gitignore index 2ea5a173a..11eb33868 100644 --- a/.gitignore +++ b/.gitignore @@ -13,4 +13,5 @@ scripts/*.pyc .vscode/ docs/_build/ docs/source/ -.coverage \ No newline at end of file +.coverage +venv/ \ No newline at end of file diff --git a/retriever/lib/rdatasets.py b/retriever/lib/rdatasets.py index 1f0002316..38a935622 100644 --- a/retriever/lib/rdatasets.py +++ b/retriever/lib/rdatasets.py @@ -168,6 +168,9 @@ def display_all_rdataset_names(package_name=None): else: print(f"List of all available Rdatasets in packages: {package_name}") + if isinstance(package_name, str): + package_name = [package_name] + for package in package_name: try: dataset_names = rdatasets[package].keys()