Skip to content

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

@schloerke

Description

@schloerke

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions