Skip to content

Setting options(OutDec = ",") breaks styler #911

@neuwirthe

Description

@neuwirthe

Using styler as RStudio addin with options(OutDec = ",") breaks styler. Since I am working with german projects, this is an issue. Creating and running the demo file below and then trying Style active file from the Addins dropdown menu produces an error.

File to demonstrate problem

---
title: "test styling"
author: "Erich Neuwirth"
date: "2/8/2022"
output: html_document
---
knitr::opts_chunk$set(echo = TRUE)
options(OutDec = ",")
cat(1+1)

Commands producing the error

> styler:::style_active_file()
Using style transformers `styler::tidyverse_style()`
 Error: invalid version specification ‘3,6’

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions