Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Helpful hints for Positron on Workbench #18

Closed
wants to merge 3 commits into from
Closed

Conversation

juliasilge
Copy link
Collaborator

It is a very low lift for us to update this site (much easier than the Workbench docs themselves) so we can use this as a spot for flexibly adding advice to folks during the preview period.

What else do we want to include here?

Copy link

netlify bot commented Nov 13, 2024

Deploy Preview for positron-posit-co ready!

Name Link
🔨 Latest commit ae52cc4
🔍 Latest deploy log https://app.netlify.com/sites/positron-posit-co/deploys/67379b6b27c1760008bcc9c5
😎 Deploy Preview https://deploy-preview-18--positron-posit-co.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

workbench.qmd Outdated Show resolved Hide resolved
Copy link
Contributor

@jthomasmock jthomasmock left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Two additions, thanks Julia!

workbench.qmd Outdated Show resolved Hide resolved
workbench.qmd Show resolved Hide resolved
@juliasilge juliasilge marked this pull request as ready for review November 15, 2024 19:05
Copy link
Collaborator

@AshleyHenry15 AshleyHenry15 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You should probably hold this until the workbench release.

For docs - I have a "hold for release" label to indicate that the PR is being held on purpose.

title: "Positron on Workbench"
---

Positron is available as a preview feature on [Posit Workbench](https://posit.co/products/enterprise/workbench/) as of its 2024.12.0 release. Important information about using Positron on Posit Workbench is available in the Workbench documentation [for admins](https://docs.posit.co/ide/server-pro/2024.12.0/positron_sessions/) and [for users](https://docs.posit.co/ide/server-pro/user/2024.12.0/positron/getting-started/), but we also want to highlight a few ways to have the best possible experience during this preview period.
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
Positron is available as a preview feature on [Posit Workbench](https://posit.co/products/enterprise/workbench/) as of its 2024.12.0 release. Important information about using Positron on Posit Workbench is available in the Workbench documentation [for admins](https://docs.posit.co/ide/server-pro/2024.12.0/positron_sessions/) and [for users](https://docs.posit.co/ide/server-pro/user/2024.12.0/positron/getting-started/), but we also want to highlight a few ways to have the best possible experience during this preview period.
Positron is available as a preview feature on [Posit Workbench](https://posit.co/products/enterprise/workbench/) as of its 2024.12.0 release. Important information about using Positron on Posit Workbench is available in the Workbench documentation [for administrators](https://docs.posit.co/ide/server-pro/2024.12.0/positron_sessions/) and [for users](https://docs.posit.co/ide/server-pro/user/2024.12.0/positron/getting-started/), but we also want to highlight a few ways to have the best possible experience during this preview period.

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Also - Workbench hasn't released yet so we will likely want to hold this PR until its release.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@juliasilge The hints have been moved over to the Workbench User Guide and are available at: https://docs.posit.co/ide/server-pro/user/2024.12.0/positron/getting-started/!

Now that the main content is in the Workbench docs, maybe we just need this blurb? We could link directly to https://docs.posit.co/ide/server-pro/user/2024.12.0/positron/reference/other-resources.html in addition to the User Guide and Admin Guide links already in this blurb.


## Install binary R packages on Workbench

Posit Workbench runs on Linux, but CRAN doesn't build Linux binaries for R packages. You _can_ install R packages using the default configuration, but you will likely find the process extremely slow. Instead, consider using a CRAN-like repository that provides binaries for your Linux architecture, such as [Posit Package Manager](https://packagemanager.posit.co/client/#/repos/cran/setup) and set that via `options()` in R. For example, if your Workbench is installed on Ubuntu 22.04 (Jammy), you would use:
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
Posit Workbench runs on Linux, but CRAN doesn't build Linux binaries for R packages. You _can_ install R packages using the default configuration, but you will likely find the process extremely slow. Instead, consider using a CRAN-like repository that provides binaries for your Linux architecture, such as [Posit Package Manager](https://packagemanager.posit.co/client/#/repos/cran/setup) and set that via `options()` in R. For example, if your Workbench is installed on Ubuntu 22.04 (Jammy), you would use:
Posit Workbench runs on Linux, but CRAN doesn't build Linux binaries for R packages. You can install R packages using the default configuration, but it's likely that the process is extremely slow. Instead, consider using a CRAN-like repository that provides binaries for your Linux architecture, such as [Posit Package Manager](https://packagemanager.posit.co/client/#/repos/cran/setup) and set that via `options()` in R. For example, if Workbench is installed on Ubuntu 22.04 (Jammy), you would use:

options(repos = c(CRAN = "https://packagemanager.posit.co/cran/__linux__/jammy/latest"))
```

If you run this one time, you will set your `options` for the current R session. If you add this code to the `.Rprofile` in your home directory on Workbench, it will apply to all your R sessions.
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't want to butcher the PR because I haven't given the rest of the guide a review but this is future tense. We strive to write the product doc in active voice as much as possible (it is a disaster and a WIP). So, I will just comment here vs. suggesting a rewrite here.


If your administrator has configured [resource profiles](https://docs.posit.co/ide/server-pro/getting_started/installation/kubernetes_installation.html#setup-resource-profiles) on Posit Workbench, you should allocate at least 4 GB of RAM when starting Positron sessions.

We expect to make performance improvements in the future to decrease the memory needs of Positron. Follow along [on GitHub](https://github.com/posit-dev/positron/issues/5050) to learn about our plans for a better solution in the long term.
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.


Follow along [on GitHub](https://github.com/posit-dev/positron/issues/3574) to learn about our plans for a better solution in the long term.

:::{.callout-note}
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Voiceover doesn't seem to recognize inline links tied to headings/files. We tested it earlier. I would change this:
directly to the Positron team
to
Use the Feedback and Users to provide feedback directly to the Positron team.

@AshleyHenry15
Copy link
Collaborator

@jthomasmock @juliasilge

I think that some of this isn't appropriate for the Positron docs.

Having Workbench docs in the Positron guide seems to suggest that we are showing a lot of favoritism and pushing/promoting Workbench. It also becomes another place that we have to track and update.

It is a very low lift for us to update this site (much easier than the Workbench docs themselves) so we can use this as a spot for flexibly adding advice to folks during the preview period.

The Workbench docs follow the same updating process as Positron—they can be rolled out whenever, and you can build them locally using quarto preview.

Anything Workbench-related should stay in the Workbench docs.
I don't think it hurts to note some of these things but maybe we just link to the Workbench docs vs. covering things like resource profiles and R discovery in the Positron guide.

By introducing this content here, we now have 3+ places (like 10+ with support articles) where we cover resource profiles and R discovery, and I think adding another place is further degrading our user experience.

@AshleyHenry15
Copy link
Collaborator

@juliasilge - I can help with/facilitate WB doc updates if it helps alleviate some of the burden. Not a problem - happy to help!

@juliasilge
Copy link
Collaborator Author

I'm happy for this to go into the Workbench docs if the consensus is that it's a better option! What I think is important that we have in the user docs in that case includes:

  • very explicit info on how to set up binary R packages, need for Python on the PATH, resource profiles
  • links to the GH issues for the big difficulties, so folks can follow along with improvements
  • a link to our feedback page surfaced fairly prominently

@sharon-wang
Copy link
Member

I'll port this content over to the Workbench User Guide.

@juliasilge
Copy link
Collaborator Author

Thank you so much @sharon-wang! We'll close this PR and after the Workbench release add a link to the user docs somewhere, maybe at the bottom of https://positron.posit.co/start? I don't think we need a whole page anymore.

Thanks, all! 🙌

@juliasilge juliasilge closed this Dec 13, 2024
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.

4 participants