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

Make quickstart launcher, e.g. make_launcher() #35

Open
philipp-baumann opened this issue Aug 12, 2023 · 4 comments
Open

Make quickstart launcher, e.g. make_launcher() #35

philipp-baumann opened this issue Aug 12, 2023 · 4 comments
Assignees
Labels
enhancement New feature or request

Comments

@philipp-baumann
Copy link
Collaborator

@b-rodrigues as you described your idea on matrix channel :-)

@philipp-baumann
Copy link
Collaborator Author

Idea: script or helper that fires up a favorite IDE with a desired Nixpkgs environment.

@philipp-baumann philipp-baumann self-assigned this Aug 12, 2023
@philipp-baumann
Copy link
Collaborator Author

philipp-baumann commented Aug 12, 2023

Here is a little wishlist from my side. @b-rodrigues happy to get your feedback and inputs :-)

  • Detect the operating system, either 1) it is UNIX, or 2) it is Windows.
  • Check if Nixpkgs is installed first. If not, for UNIX, use the Determinate Nix Installer from Determinate Systems directly. If Windows, check if the WSL2 Ubuntu console is available, if not, install it (note to rerun R with admin rights).
  • Special Windows hook: quick-jump from the current R terminal path in Windows to corresponding mounted path in WSL2.

@philipp-baumann
Copy link
Collaborator Author

The good thing is that we have {curl} already in our reverse dependency list (currently we import {httr}, {jsonlite}, {sys} and {utils}). This means there is no cost in adding curl (some OS'es do not come with curl by default). That means easier downloads when bootstrapping directly from R.

@philipp-baumann philipp-baumann added the enhancement New feature or request label Aug 13, 2023
@philipp-baumann
Copy link
Collaborator Author

  • UNIX, use the Determinate Nix Installer from Determinate Systems directly. If Windows, check if the WSL2 Ubuntu console is ava

just a helper/wrapper via sys::exec_<...>

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant