Skip to content

Allow passing R arguments to rig run #249

Description

@AdrienLeGuillou

Hi,

is there a way to pass R arguments like --no-save to rig run?

something like rig run -- --no-save

Thanks

Activity

  1. gaborcsardi commented on Sep 19, 2024

    @gaborcsardi
    Member

    AFAICT it never saves the data, so you don't need --no-save. Which arguments would you like to use in particular?

  2. AdrienLeGuillou commented on Sep 19, 2024

    @AdrienLeGuillou
    Author

    I do get the Save workspace image? [y/n/c]: prompt when quitting with Ctrl-D (or the signal sent by iron.nvim) and as well with just q().

    I can make an alias

      q <- function(save="no", ...)  quit(save = save, ...)

    in my .Rprofile but that does not change the behavior on Ctrl-D

  3. klmr commented on Sep 19, 2024

    @klmr

    Specifying --no-save does make a difference:

    $ rig run
    […]
    > q()
    Save workspace image? [y/n/c]: ^D
    
    $ R --no-save
    […]
    > q()
    [quits without prompt]
    
  4. AdrienLeGuillou commented on Sep 19, 2024

    @AdrienLeGuillou
    Author

    weirdly not in my case

    I > R --no-save
    [..]
    > q()
    Save workspace image? [y/n/c]: n
    

    let me check on another computer

  5. AdrienLeGuillou commented on Sep 19, 2024

    @AdrienLeGuillou
    Author

    ok apparently that has to do with an alias malfunctioning on my end.
    Very sorry for that

  6. gaborcsardi commented on Sep 19, 2024

    @gaborcsardi
    Member

    Oh, right, so you are running it without any arguments? Then it would indeed make sense to be able to pass some arguments....

  7. AdrienLeGuillou commented on Sep 19, 2024

    @AdrienLeGuillou
    Author

    Yes, I guess having a way to pass argument into rig run to the sub call (R, RScript, etc) could be useful.

    I suggested rig run -- --no-save as it reminds me of cargo run a_project -- arguments_to_the_project

  8. klmr commented on Sep 19, 2024

    @klmr

    A modest proposal: make rig run an alias for R --no-save --no-restore instead of currently just R, to shed some historical ballast (the default R settings of saving/restoring globalenv is daft).

  9. gaborcsardi commented on Sep 19, 2024

    @gaborcsardi
    Member

    @klmr Yeah, I like that.

  10. TymekDev commented on Oct 18, 2024

    @TymekDev
    Contributor

    I wouldn't mind having either --vanilla or --no-init-file and --no-site-file. I find it useful when working in a renv project, but wanting do something outside the limited library (e.g. check docs of a package I have installed globally).

  11. added a commit that references this issue on Sep 25, 2026
    0b506cf
  12. github-actions commented on Oct 1, 2026

    @github-actions

    This issue has been automatically locked. If you believe you have found a related problem, please file a new issue and include a link to this issue

  13. locked as resolved and limited conversation to collaborators on Oct 1, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    featurea feature request or enhancement

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions