vetiver.deploy_rsconnect#

vetiver.deploy_rsconnect(connect_server, board, pin_name: str, version: Optional[str] = None, extra_files: Optional[List[str]] = None, new: bool = False, app_id: Optional[int] = None, title: Optional[str] = None, python: Optional[str] = None, conda_mode: bool = False, force_generate: bool = False, log_callback: Optional[Callable] = None, image: Optional[str] = None)#

Deploy to RSConnect

Parameters
  • connect_server (rsconnect.api.RSConnectServer) – RSConnect Server

  • board – Pins board

  • pin_name (str) – Name of pin

  • version (str) – Version of pin

  • extra_files (List[str]) – Any extra files to include in

  • new – Force as a new deploy

  • app_id – ID of an existing application to deploy new files for.

  • title (str) – Optional title for the deploy.

  • python (str) – Optional name of a Python executable

  • conda_mode (bool) – Use conda to build an environment.yml

  • force_generate (bool) – Force generating “requirements.txt” or “environment.yml”

  • log_callback (Callable) – Callback to use to write the log to

  • image (str) – Docker image to be specified for off-host execution

  • Example

  • -------

  • vetiver (>>> import) –

  • pins (>>> import) –

  • rsconnect (>>> import) –

  • pins.board_temp(allow_pickle_read=True) (>>> board =) –

  • rsconnect.api.RSConnectServer( (>>> connect_server =) –

  • url (... url =) –

:param : :param … api_key = api_key) # doctest: :type … api_key = api_key) # doctest: +SKIP :param >>> X: :param y = vetiver.get_mock_data(): :param >>> model = vetiver.get_mock_model().fit(X: :param y): :param >>> v = vetiver.VetiverModel(model = model: :param : :param … model_name = “my_model”: :param : :param … ptype_data = X): :param >>> vetiver.deploy_rsconnect(: :param … connect_server = connect_server: :param : :param … board = board: :param : :param … pin_name = “my_model”: :param … ) # doctest: :type … ) # doctest: +SKIP