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

Plans on CRAN? #17

Open
dipterix opened this issue Jul 20, 2021 · 10 comments
Open

Plans on CRAN? #17

dipterix opened this issue Jul 20, 2021 · 10 comments

Comments

@dipterix
Copy link

This package is amazing! Any plans to be on CRAN?

@gadenbuie
Copy link
Owner

gadenbuie commented Jul 23, 2021

I'm not sure, mostly because the way this package works is to modify some of its own files once it's installed. This feels like a bit of a grey area with CRAN, although I haven't seen anything explicitly prohibiting packages from modifying their own files after installation. If there's a precedent elsewhere for this that you're aware of I'd be happy to consider sending this to CRAN.

The other option is to use the repository at gadenbuie.r-universe.dev:

options(repos = c(
    gadenbuie = 'https://gadenbuie.r-universe.dev',
    CRAN = 'https://cloud.r-project.org'))

install.packages('shrtcts')

@hliebert
Copy link

Here's another vote for putting this on CRAN. My work mirrors CRAN and access to other remote repositories is blocked. Putting it on CRAN would be very helpful.

@gadenbuie
Copy link
Owner

yeah, I'm slowly working on releasing some of my GitHub only packages to CRAN. This is on the list, but it'll be a little bit before I can get to it.

@dipterix
Copy link
Author

@hliebert I remember the conversation (issue) was shrtcts dynamically change its package content in order to store and execute shortcut commands, but CRAN explicitly disallow it in the CRAN policy.

A good news is RStudio now supports querying the shortcuts in R_user_dir, which is also encouraged by CRAN.

@gadenbuie
Copy link
Owner

The RStudio feature landed in RStudio 2021.09.0 "Ghost Orchid"

RStudio addins installed within tools:::R_user_dir(<pkg>, "config") are now discovered by RStudio.

@hliebert
Copy link

@hliebert I remember the conversation (issue) was shrtcts dynamically change its package content in order to store and execute shortcut commands, but CRAN explicitly disallow it in the CRAN policy.

Ah, that's unfortunate.

A good news is RStudio now supports querying the shortcuts in R_user_dir, which is also encouraged by CRAN.

I'm not sure how that would help. I just wanted to map shortcuts for a couple of functions I wrote myself. Basically installing packages from anywhere other than CRAN is blocked at my work. So is downloading archives.

@gadenbuie
Copy link
Owner

I'm not sure how that would help. I just wanted to map shortcuts for a couple of functions I wrote myself. Basically installing packages from anywhere other than CRAN is blocked at my work. So is downloading archives.

The RStudio update means that, as long as you're using RStudio 2021.09.0 or later — i.e. RStudio released after September, 2021 — shrtcts will work just fine because it can write to a user-writable folder. Without the RStudio update, I have to modify files inside the package contents (which is more of a gray area than an explicitly disallowed CRAN policy), which might not work in controlled package environments anyway.

@hliebert
Copy link

Got it, thanks for clarifying. Thank you for your work! Whenever you get around to submitting to CRAN, your effort is greatly appreciated.

@gadenbuie
Copy link
Owner

Well this is interesting...

https://twitter.com/statnmap/status/1569343096223158276

@dipterix
Copy link
Author

Indeed. Maybe store shortcuts with the login usernames?

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

No branches or pull requests

3 participants