Skip to content

Indent in Rmarkdown stuck at 8 spaces (1.2) #2395

Closed

Description

@hadley
  1. Create new rmarkdown file
  2. Navigate to setup chunk and put cursor at start of line
  3. Tab inserts 8 spaces, even though I have set 2 (and that is respected in .R files

Activity

  1. jjallaire commented on Mar 14, 2018

    @jjallaire
    Member

    I saw the same thing on v1.2 and it caused me to switch back to v1.1

  2. ronblum commented on Mar 14, 2018

    @ronblum
    Contributor

    Note: this appears to affect Global Options. When Project Options are set, the issue goes away.

  3. kevinushey commented on Mar 14, 2018

    @kevinushey
    Collaborator

    Will be fixed with b962110.

  4. kevinushey commented on Mar 14, 2018

    @kevinushey
    Collaborator

    In the meantime, you can work around this with e.g.

    .rs.writeUiPref("auto_detect_indentation", FALSE)
    

    After executing that, any new R Markdown documents opened will no longer auto-detect the (wrong) indentation.

  5. added this to the v1.2 milestone on Mar 14, 2018
  6. kevinushey commented on Mar 20, 2018

    @kevinushey
    Collaborator

    Should be fixed with latest daily builds -- please re-open if you're still having trouble.

  7. dfalty commented on Nov 6, 2018

    @dfalty

    Verified fixed on version 1.2.1090.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions