-
Notifications
You must be signed in to change notification settings - Fork 52
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
Escaping R Code #79
Comments
Well it's 5 years later but someone else is indeed struggling with the same thing, @gzagatti. I've been using SLIMUX for 10 years and I've only recently started having trouble, first with phantom characters on WSL2 (got ran out of town after asking about it on StackOverflow), and then I switched to a Mac and hit this issue. Your illustration still works perfectly. It's interesting because if you take out just some of the commented lines between a = and b = , it works. Have you found a workaround? Do you want to team up and try to figure this out? |
@baogorek, I haven't been using R as frequently anymore which means I have not faced this issue as recurrently as before. I never found a workaround, so I continued using copy/paste or sourcing the file. It's a shame that the problem persists as SLIMUX is very useful otherwise. Unfortunately, I do not have the bandwidth to work on this at the moment. |
I finally figured out what's going on here. It actually has nothing to do with SLIMUX as a plugin. The problem appears to be with tmux on MacOS, and in particular the
for a temp.R of the right length and composition to make it fail spectacularly. You'll see the repeated characters right on the screen. Given I was also having trouble with SLIMUX on WSL 2, I have a new rule: SLIMUX is for true Linux only. While in MacOS, I'm going to be running SLIMUX in an ubuntu docker container. I'll be ssh-ing in and using X-forwarding to get plots (see here f](url) for a tutorial). |
This is a great plugin that I use almost every day.
However, I have been facing issues with sending R code to the console. Whenever the code is small, I can send it to the console without any problem. However, when I select a big chunk and send to the console it breaks.
It seems that when the code is pasted on the console via tmux
paste-buffer
, it gets somehow duplicated and I get an error. Whenever I copy and paste manually, the code is pasted correctly. Thus, I am not sure how to correct this problem.I gave a go at escaping the R code by writing a custom function without any success:
As an illustration, take the following code:
Whenever I send to the console via
:SlimuxREPLSendSelection<CR>
. The code is not pasted correctly and I get an error:However, if I copy and paste the above in the console it run without any problems.
Has anybody experienced a similar issue? Any way to fix it?
The text was updated successfully, but these errors were encountered: