diff --git a/jupyterlab_code_formatter/formatters.py b/jupyterlab_code_formatter/formatters.py index ac7d668..5c93fe2 100644 --- a/jupyterlab_code_formatter/formatters.py +++ b/jupyterlab_code_formatter/formatters.py @@ -361,6 +361,9 @@ def package_name(self) -> str: @property def importable(self) -> bool: + if not command_exist("Rscript"): + return False + package_location = subprocess.run( ["Rscript", "-e", f"cat(system.file(package='{self.package_name}'))"], capture_output=True,