Lets do then. Player 1 randomizes (1/3, 1/3, 1/3). Player 2 randomizes (1, 0, 0). Does player 1 want to deviate? Yes! Randomizing is not the best strategy if player 2 is going to be playing the same pure strategy all…
Just use the '<-' all the time, except in function calls. If you can use '<-' with an easy key press you will not be tempted to use '='. And the problem is greatly reduced. But yes, the problem is still there.
You are absolutely right, but then either you first post was missworded or I missunderstood the issue (most likely the latter), as there is a way to know the directory of the script. 100% agree with R is not a sane…
I do not really disagree with you, except for the '<-' bit, just map it to a keyboard shortcut, and move on :). But I would give R a try with the tidyverse, it made me go from hating R to just not caring about it. While…
rstudioapi::getActiveDocumentContext()$path I believe thats is what you are looking for.
Lets do then. Player 1 randomizes (1/3, 1/3, 1/3). Player 2 randomizes (1, 0, 0). Does player 1 want to deviate? Yes! Randomizing is not the best strategy if player 2 is going to be playing the same pure strategy all…
Just use the '<-' all the time, except in function calls. If you can use '<-' with an easy key press you will not be tempted to use '='. And the problem is greatly reduced. But yes, the problem is still there.
You are absolutely right, but then either you first post was missworded or I missunderstood the issue (most likely the latter), as there is a way to know the directory of the script. 100% agree with R is not a sane…
I do not really disagree with you, except for the '<-' bit, just map it to a keyboard shortcut, and move on :). But I would give R a try with the tidyverse, it made me go from hating R to just not caring about it. While…
rstudioapi::getActiveDocumentContext()$path I believe thats is what you are looking for.