This repo contains demo assets to be used on the Posit Test Drive environment.
Posit Test Drive is a limited demo environment hosted by Posit to help you learn more and try out the various features.
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!
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.
It can be very daunting learning a new system. Here are some useful resources to explore as you get familiar with the Posit products.
Orient yourself to the products and learning resources.
- How to log in
- Explore the UI
- Explore the User Guides
- New to R/Python?
Learn how to use certain product features and deploy content to share with others.
- 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
- 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
- Obtain a repository URL
- Install a package from a date-based snapshot
- Identify the system dependencies of a package
There are two ways to open an R project.
- Find the Files tab on the right side of your screen
- Navigate to the project folder you want to work in.
- Launch the project by clicking on the .Rproj file
- Navigate to the project folder you want to work in.
- Restore the needed packages into the renv environment.
setwd("./R/shiny-penguins/")
renv::restore()
- 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
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
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.
Updates for the environment can be done with: R -e 'renv::record("renv@1.0.11"); renv::restore(packages = "renv"); renv::install(); renv::snapshot(); rsconnect::writeManifest()'
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.