# Cursor appending characters when code is run from R scripts

**URL:** <https://forum.cursor.com/t/cursor-appending-characters-when-code-is-run-from-r-scripts/105710>\
**Category:** Bug Reports\
**Created:** [June 19, 2025, 2:40am UTC](https://forum.cursor.com/t/cursor-appending-characters-when-code-is-run-from-r-scripts/105710 "2025-06-19T02:40:58Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![rae.w](https://avatars.discourse-cdn.com/v4/letter/r/ac91a4/32.png) [@rae.w](https://forum.cursor.com/u/rae.w)\
**Post date:** [June 19, 2025, 2:40am UTC](https://forum.cursor.com/t/cursor-appending-characters-when-code-is-run-from-r-scripts/105710/1 "2025-06-19T02:40:58Z")

</div>

### Describe the Bug

When running any line using cmd+enter from a .R, .Rmd, or .qmd script using the R extension, cursor appends “00~” and “01” to the beginning and end of the command, respectively.

### Steps to Reproduce

1. Create an R script file (.R)
2. Add a simple command like `print("test")`
3. Use Cmd+Enter to run the line
4. Error: `Error: unexpected numeric constant in "print("test")01"`

### Expected Behavior

The command should run in the interactive R terminal without appending any additional characters

### Screenshots / Screen Recordings

 ![Screenshot 2025-06-18 at 7.39.58 PM.png](https://us1.discourse-cdn.com/cursor1/original/3X/7/6/767208eef7cf003e3b592a45af53b36d5b8319db.png)

### Operating System

MacOS

### Current Cursor Version (Menu → About Cursor → Copy)

Version: 1.1.3 (Universal)  
VSCode Version: 1.96.2  
Commit: 979ba33804ac150108481c14e0b5cb970bda3260  
Date: 2025-06-15T06:37:17.379Z  
Electron: 34.5.1  
Chromium: 132.0.6834.210  
Node.js: 20.19.0  
V8: 13.2.152.41-electron.0  
OS: Darwin arm64 24.5.0

### Additional Information

- This only happens when running from script files with Cmd+Enter
- Interactive R terminal works fine
- Same commands run correctly in RStudio
- This breaks R script development workflow

### Does this stop you from using Cursor

Yes - Cursor is unusable

---

<div class="post-metadata">

**Author:** ![system](https://sea3.discourse-cdn.com/cursor1/user_avatar/forum.cursor.com/system/32/99069_2.png) [@system](https://forum.cursor.com/u/system)\
**Post date:** [July 19, 2025, 2:41am UTC](https://forum.cursor.com/t/cursor-appending-characters-when-code-is-run-from-r-scripts/105710/2 "2025-07-19T02:41:33Z")

</div>

Closed on July 19, 2025, 2:41am UTC

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
