Posit Demo Assets
This repo contains demo assets to be used on the Posit Test Drive environment.
What is Posit Test Drive
Posit Test Drive is a limited demo environment hosted by Posit to help you learn more and try out the various features.
Video series
Do you prefer watching videos over reading? Check out the end-to-end data science workflows video series for inspiration for what Posit Team enables your team to accomplish!
Getting Started
Here you will find three products:
- Posit Workbench is your development environment for creating R and Python code and running large computationally intensive jobs in a secure and scaleable environment.
- Posit Connect is a publishing platform for hosting the work your team creates in R and Python.
- Posit Package Manager is a repository management server to organize and centralize R and Python packages across your organization.
Milestones to Success
It can be very daunting learning a new system. Here are some useful resources to explore as you get familiar with the Posit products.
First Day
Orient yourself to the products and learning resources.
Orientation
- How to log in
- Explore the UI
- Explore the User Guides
- New to R/Python?
User Guides
New to R/Python?
First Week
Learn how to use certain product features and deploy content to share with others.
Posit Workbench
- Launch a Workbench Job
- Open a project
- Publish to Posit Connect using push button publishing
- Publish to Posit Connect using rsconnect or rsconnect-python programmatic publishing
- Learn best practises for environment management in R
- Learn best practises for environment management in python
Posit Connect
- Understand the differences between an admin, viewer, and publisher roles
- Generate an API key
- Share a piece of content with other users
- Edit the runtime settings
- Schedule a report
- Customize a contents URL
- Explore the logs of different content types
- Add environment variables to content
Posit Package Manager
- Obtain a repository URL
- Install a package from a date-based snapshot
- Identify the system dependencies of a package
How do I open a project?
R content
There are two ways to open an R project.
Option 1:
- Find the Files tab on the bottom left of the screen
- Navigate to the project folder you want to work in.
- Launch the project
Option 2:
- Navigate to the project folder you want to work in.
- Restore the needed packages into the renv environment.
setwd("./R/shiny-penguins/")
renv::restore()
Python content
- Create a virtual environment in the folder you want to work in.
- Restore the needed packages into the virtual environment.
cd python-examples/dash-app
python3 -m venv .venv
source .venv/bin/activate
python3 -m pip install -U pip setuptools wheel
python3 -m pip install -r requirements.txt
Running into issues?
Reach out to your Posit account executive who can answer your questions or direct you to the right resources as you evaluate Posit. If you aren't sure who your account executive is email sales@posit.co{.email} and ask to be introduced.
Get technical help! Email-based Posit support is also available. Learn how to submit support tickets: here
Want to add an example?
Awesome!
For R based projects the requirements are:
- Clone and branch this project.
- Use renv to record the r package versions used
- Create a
manifest.json
file to support git-backed publishing - Submit the Pull Request (PR) to have your changes added to this repository.
For Python based projects the requirements are:
- Clone and branch this project.
- Create a
venv
to isolatle enviornments and generate arequirements.txt
file so that only the minimum packages needed to support your project are included. Read this for more on Python package management. - Create a
manifest.json
file to support git-backed publishing - Submit the Pull Request (PR) to have your changes added to this repository.