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

rice starting up with the debug prompt #11

Closed
jimhester opened this issue Sep 14, 2017 · 4 comments
Closed

rice starting up with the debug prompt #11

jimhester opened this issue Sep 14, 2017 · 4 comments

Comments

@jimhester
Copy link

as of rice version 0.0.13 it seems to be starting up with the debug prompt rather than the regular one. I can fix it by explicitly setting a prompt.

> rice
R version 3.4.1 Patched (2017-08-06 r73048) -- Single Candle
Platform: x86_64-apple-darwin15.6.0

debug%>

debug%> options(prompt = "> ")

> 

This is likely a regression in relation to #9

@randy3k
Copy link
Owner

randy3k commented Sep 14, 2017

Sorry for the error, fixed.

@jimhester
Copy link
Author

Thanks!

This is almost correct now, except that it overwrites an existing options(prompt) value set in .RProfile. e.g. I set options(prompt = "> ") in .Rprofile, but the value is changed to "r$> " when I start rice. If I change the option interactively it correctly updates however.

@randy3k
Copy link
Owner

randy3k commented Sep 14, 2017

When rice starts, it detects if options("prompt") is "> " and change it to "r$> ". Therefore, the value is changed to r$> . It seems that there is no way for me to tell between prompt == "> " is.null(prompt) because prompt is initialized as "> ".

A solution to it is to add an option "rice.prompt" which will over write rice default prompt r$>

@jimhester
Copy link
Author

Ah that makes sense, If you would like to add an option that is fine, or I can just change my prompt from the default.

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

2 participants