Skip to content

Conversation

@kippandrew
Copy link
Collaborator

@kippandrew kippandrew commented Jan 9, 2026

This pull request adds full support for creating, archiving, restoring, and deleting spaces in RStudio Cloud, along with comprehensive input validation and lifecycle tests. The main focus is on expanding the API for managing spaces and ensuring robust error handling.

New Space Management Functions:

  • Added rscloud_space_create, rscloud_space_archive, rscloud_space_restore, and rscloud_space_delete functions to allow programmatic creation, archiving, restoration, and deletion of spaces. Each function includes detailed parameter validation and documentation.

Input Validation and Error Handling:

  • Implemented strict input validation for rscloud_space_create, ensuring correct types and values for name, account_id, access, and copy parameters, with informative error messages. [1] [2]
  • Improved error messages for non-existent spaces in rscloud_space, changing the error to "No space found" for clarity.

Testing Enhancements:

  • Added tests for input validation in rscloud_space_create, checking that improper arguments trigger the correct errors.
  • Added a full lifecycle test that creates a space, archives it, restores it, deletes it, and verifies each operation, ensuring the new functions work as intended.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants