airflow_renv_operator.py
def restore_environment(self) -> None:
        """Restore a project-local environment from renv.lock.

        This ensures the project is in a clean and valid state that
        matches its lockfile.
        """
        logger.info(f'Preparing project-local environment: {self.project_path}')

        # Execute R expression; use --quiet flag to suppress startup message
        r_command = ['R', '--quiet', '-e', 'renv::restore(clean = TRUE)']
        result = self.subprocess_hook.run_command(
            command=r_command,
            cwd=str(self.project_path),
        )
        if result.exit_code != 0:
            raise AirflowException(f'R returned a non-zero exit code: {result.exit_code}')
Restore a project-local environment from renv.lock.

        This ensures the project is in a clean and valid state that
        matches its lockfile.
        
Restore a project-local environment from renv.lock.
This ensures the project is in a clean and valid state that
matches its lockfile.
Restore a project - local environment from renv . lock . This ensures the project is in a clean and valid state that matches its lockfile .
def restore_environment(self) -> None:
        logger.info(f'Preparing project-local environment: {self.project_path}')
        r_command = ['R', '--quiet', '-e', 'renv::restore(clean = TRUE)']
        result = self.subprocess_hook.run_command(
            command=r_command,
            cwd=str(self.project_path),
        )
        if result.exit_code != 0:
            raise AirflowException(f'R returned a non-zero exit code: {result.exit_code}')
def restore_environment ( self ) -> None : logger . info ( f'Preparing project-local environment: {self.project_path}' ) r_command = [ 'R' , '--quiet' , '-e' , 'renv::restore(clean = TRUE)' ] result = self . subprocess_hook . run_command ( command = r_command , cwd = str ( self . project_path ) , ) if result . exit_code != 0 : raise AirflowException ( f'R returned a non-zero exit code: {result.exit_code}' )
Restore a project-local environment from renv.lock.
Restore a project - local environment from renv . lock .
"""Restore a project-local environment from renv.lock.

        This ensures the project is in a clean and valid state that
        matches its lockfile.
        """ # Execute R expression; use --quiet flag to suppress startup message
self