Hi there,
I'm having an unusual problem I hope someone can help with.
I cannot seem to copy/paste anything, from within RStudio, whether using keyboard shortcuts (ctrl+c
), right-clicking, or going to Edit > Copy. So, highlighting some text then doing ctrl+c
, ctrl+v
does nothing. This holds no matter if I'm working in an .Rmd or .R file, or in the console.
However, if I copy something to the clipboard from outside RStudio, then I am able to paste it into RStudio.
Finally, if I try to cut (ctrl+x
or right-click or Edit>Cut), the highlighted text disappears as it should, but when I go to paste, nothing happens.
Closing & reopening RStudio doesn't fix it, and these basic keyboard shortcuts don't seem to be modifiable in RStudio.
My sense from the above is that there's some issue with RStudio writing anything to the clipboard, which might be why pasting into RStudio is fine but pasting text copied inside RStudio doesn't work.
Note that one hack I found around this is to highlight text and drag it into another window, or another location in RStudio, so as to activate the drag-and-drop copy feature without actually going through the copy command. This works, but is not useful if you actually need to copy/paste rather than just move text.
Lastly, this error just started a few days ago though I've been using RStudio and particularly this version on this system for months.
Any thoughts?
Thanks,
Ava
System Info: I'm working on a Windows 11 machine, the following R and RStudio versions:
> R.version
platform x86_64-w64-mingw32
arch x86_64
os mingw32
crt ucrt
system x86_64, mingw32
status
major 4
minor 2.1
year 2022
month 06
day 23
svn rev 82513
language R
version.string R version 4.2.1 (2022-06-23 ucrt)
nickname Funny-Looking Kid
> RStudio.Version()
$citation
To cite RStudio in publications use:
RStudio Team (2022). RStudio: Integrated Development Environment for R.
RStudio, PBC, Boston, MA URL http://www.rstudio.com/.
A BibTeX entry for LaTeX users is
@Manual{,
title = {RStudio: Integrated Development Environment for R},
author = {{RStudio Team}},
organization = {RStudio, PBC},
address = {Boston, MA},
year = {2022},
url = {http://www.rstudio.com/},
}
$mode
[1] "desktop"
$version
[1] ‘2022.7.0.548’
$long_version
[1] "2022.07.0+548"
$release_name
[1] "Spotted Wakerobin"