INNER CODE UNIT · Python

__enter__

briscverse/ryp · ryp.py:29

    def __enter__(self):
        if threading.current_thread() is threading.main_thread():
            signal.signal(signal.SIGINT, signal.SIG_IGN)

    def __exit__(self, *_):
        if threading.current_thread() is threading.main_thread():
            signal.signal(signal.SIGINT, signal.default_int_handler)


def _get_rlib_path(R_home: str) -> str:
    """
    Get the path to the R shared library.

    Based on the rpy2.situation.get_rlib_path() function.

    Args:
        R_home: the path to the R home directory

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…