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

options(OutDec= ",") and aes_string() #1045

Closed
schloerke opened this issue Jan 20, 2015 · 1 comment
Closed

options(OutDec= ",") and aes_string() #1045

schloerke opened this issue Jan 20, 2015 · 1 comment

Comments

@schloerke
Copy link
Contributor

@schloerke schloerke commented Jan 20, 2015

aes_string is having trouble with decimal values. Should I be calling the value inside a quote (as a character) to make it work properly? Seems odd.

# works ok
aes_string(x = 2.5)
aes(x = 2.5)

options(OutDec= ",")

aes(alpha = 0.4)
# List of 1
#  $ alpha: num 0,4
aes_string(alpha = 0.4)
# Error in parse(text = x) : <text>:1:2: unexpected ','
#1: 0,
#      ^
aes_string(alpha = "0.4")
# List of 1
#  $ alpha: num 0,4


# wrong
aes_string(alpha = 0,4)
# List of 2
#  $ x    : num 4
#  $ alpha: num 0

Thank you,
Barret

@hadley
Copy link
Member

@hadley hadley commented Jan 21, 2015

Wow, I've never seen that before!

@hadley hadley closed this in 15bc5f7 Jun 11, 2015
@lock lock bot locked as resolved and limited conversation to collaborators Jun 20, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
2 participants