Problem with find and replace in R Editor - r

I am currently using R (RGui; R version 4.2.1). I use 'find' and 'replace' in R Editor a lot. Recently, both will only work for one character. So I can find 'a' but it won't find any instances of 'aaa' even if I know they exist. I'd be really happy if anyone can suggest a solution as it's driving me crazy. Thanks!

This was recently fixed in Rgui for Windows. I am using "R version 4.2.1 Patched (2022-09-28 r82941 ucrt)" and it works (using ctrl-h or the Edit menu in the Rgui R Editor).
In the BUG FIXES on Windows subsection within the section CHANGES IN R 4.2.1 patched of https://cran.r-project.org/doc/manuals/r-devel/NEWS.html it says:
Find and replace operations work again in the script editor in Rgui on Windows.

Same problem - with R 4.2.1 I cannot find and replace using the R editor. I had to close the script up and do it in .txt.

I have the same issue. R version 4.2.1 on Windows 10. It doesn't find anything I search for, even if I can see it right there on the screen. Not even single-character strings. I was editing a non-R file.

Related

No Signature help for R methods in Sublime Text

I'm using Sublime Text (Build 4126) on a MacBook Pro (running Monterey 12.2.1) with the R-IDE package. I installed it as described at:
https://packagecontrol.io/packages/R-IDE
i.e., in R: install.packages("languageserver"); then in Sublime: install R-IDE, LSP, and LSP-R from Package Control.
Items under the R-IDE menu work as expected, syntax highlighting works, and the hover feature shows references to other occurrences of the item under the cursor. However, signature help doesn't work. This worked (most of the time) under R-Box (both written by randy3k). I've tried playing with settings files, but really don't know what I'm doing. I suspect this is probably a languageserver issue (https://github.com/REditorSupport/languageserver), but I'm just fumbling around.
Any suggestions on how to get signature help working for R in Sublime Text? Is anyone else not able to get it working?

Greek Characters in Julia Jupyter edition

I am using Julia.
I am trying to get some greek characters in Jupyter notebooks.
First I downloaded the latest version of Julia 1.6.2
For the jupyter connection I used anaconda, in julia repl i put ] add IJulia, and then I could chose the Julia kernel in Jupyter.
Then a friend suggested to download vs code (since we got a problem in the working directory with jupyter-anaconda)
In VS code we got no problem with working directories. And to work with notebooks we installed the Jupyter extension. It was working very well, but we got to this problem that we cannot get greek characters.
In Jupyter (anaconda) I could easily put greek characters, like this:
no package needed, nothing, just like that.
However in VSCode I cannot get that, nor "predictive text" or coding suggestions:
Any tips on how to solve this?
Like we are preferring VS Code and we know there's a way to get the greek characters on it, but we don't know how.
Any help is very welcomed.
Thanks in advance.
Check out the docs for the Julia extension in VS code here: https://code.visualstudio.com/docs/languages/julia. Per the comments above, make sure this is installed and you have the Julia kernel selected. You should then see the following:

R I want to remove those red lines

I want to remove those red lines in r studio.
I upgraded to the latest version, according to someone's suggestion.
But it is not working.
The problem occurs when I write Korean words.
The default encoding is UTF-8.
I found a similar problem here, but it didn't work for me.
https://community.rstudio.com/t/why-and-where-is-a-an-unexpected-token-in-r-and-how-should-i-deal-with-it/26496/4
df$번호
df$이름
df$성별
This is a bug -- unfortunately, the RStudio diagnostics system does not correctly handle multibyte characters in R Markdown documents on Windows. This will hopefully be fixed in the next release (v1.3).

R studio graph not appearing in plots window

I am having trouble getting my graphs to appear in the 'plots' window of R studio - once I run the script they appear in a separate R graphics window, separate to R Studio, with the 'plots' tab blank.
Is there a setting or code I should use to change this?
Thank you in advance,
This has been a consistent problem for many users ever since the last couple updates, myself included. It was apparently fixed with 3.5 version of R, which I haven't updated to, but you didn't mention which version you are running.
Either way, if you're running the most updated version or not, try getOption("device") and check the output of that. Per an R support community post, if the output does not say RStudioGD, you can use options(device = "RStudioGD").
The NEXT, and more annoying, solution was to uninstall and reinstall RStudio. Many people found that this solved their problem.
If neither of those work work, the only other solution that people were finding is to downgrade your R version to a compatible version unfortunately! It's really annoying, I know!
Hope I could help!

R syntax highlighting in Terminal

Can we get syntax highlighting for R in the Terminal?
I've finally found a library that meets my needs.
Now I'm much happier with my coding environment.
colorout is an R package that colorizes R output when running in a terminal emulator.The package cannot be on CRAN because it changes code already loaded by R and this is prohibited by the CRAN Repository Policy. The package replaces the functions that output results and messages to R Console, and this is necessary because we cannot colorize the output without replacing these functions. To install it, do the following in R:
install.packages("devtools")
devtools::install_github("jalvesaq/colorout")
library("colorout")
# do something
Use something like ess on emacs or RStudio for syntax highlighting for R instead of expecting it to work in the terminal.
Another option now would be to use radian instead of the default R prompt.
As hd1 indicated, this is not an R question. You're asking the OSX Terminal.app to do something it's not capable of. A quick look around Google (happy Zamboni birthday!) shows Vim syntax Highlighting for highlighting within vim , or https://superuser.com/questions/72057/terminal-emulator-with-custom-color-palette , but dunno if these will run under Darwin.
EDIT: I can't stay away from the search :-) . So check out these threads: https://superuser.com/questions/400360/syntax-highlighting-in-terminal-mac-os-x , http://forums.macrumors.com/showthread.php?t=412609 , and a recommendation to install zsh , https://apple.stackexchange.com/questions/12161/os-x-terminal-must-have-utilities

Resources