Ctrl+C doesn't always work in linux. I can copy outside of RStudio (e.g. in a web browser), and I can also right click and copy, but the shortcut key is broken in linux sometimes. This is similar to an archived issue three years ago: Ctrl+C keyboard shortcut problem
Here is the session information:
> sessionInfo()
R version 4.2.1 (2022-06-23)
Platform: x86_64-pc-linux-gnu (64-bit)
Running under: Ubuntu 20.04.4 LTS
Matrix products: default
BLAS: /usr/lib/x86_64-linux-gnu/blas/libblas.so.3.9.0
LAPACK: /usr/lib/x86_64-linux-gnu/lapack/liblapack.so.3.9.0
locale:
[1] LC_CTYPE=en_US.UTF-8 LC_NUMERIC=C LC_TIME=en_US.UTF-8 LC_COLLATE=en_US.UTF-8 LC_MONETARY=en_US.UTF-8
[6] LC_MESSAGES=en_US.UTF-8 LC_PAPER=en_US.UTF-8 LC_NAME=C LC_ADDRESS=C LC_TELEPHONE=C
[11] LC_MEASUREMENT=en_US.UTF-8 LC_IDENTIFICATION=C
attached base packages:
[1] stats graphics grDevices utils datasets methods base
other attached packages:
[1] mice_3.14.0 Amelia_1.8.0 Rcpp_1.0.8.3 magrittr_2.0.3
loaded via a namespace (and not attached):
[1] readxl_1.4.0 backports_1.4.1 INLA_22.07.01 Hmisc_4.7-0 corrplot_0.92
[6] BiocFileCache_2.4.0 igraph_1.3.2 lazyeval_0.2.2 sp_1.5-0 TMB_1.9.0
[11] splines_4.2.1 BiocParallel_1.30.3 GenomeInfoDb_1.32.2 ggplot2_3.3.6 digest_0.6.29
[16] ensembldb_2.20.2 htmltools_0.5.2 fansi_1.0.3 checkmate_2.1.0 memoise_2.0.1
[21] BSgenome_1.64.0 cluster_2.1.3 InteractionSet_1.24.0 Biostrings_2.64.0 matrixStats_0.62.0
[26] prettyunits_1.1.1 jpeg_0.1-9 colorspace_2.0-3 blob_1.2.3 rappdirs_0.3.3
[31] xfun_0.31 dplyr_1.0.9 crayon_1.5.1 RCurl_1.98-1.7 lme4_1.1-29
[36] VariantAnnotation_1.42.1 survival_3.3-1 glue_1.6.2 gtable_0.3.0 zlibbioc_1.42.0
[41] XVector_0.36.0 DelayedArray_0.22.0 BiocGenerics_0.42.0 scales_1.2.0 DBI_1.1.3
[46] progress_1.2.2 htmlTable_2.4.0 foreign_0.8-82 bit_4.0.4 Formula_1.2-4
[51] stats4_4.2.1 htmlwidgets_1.5.4 httr_1.4.3 RColorBrewer_1.1-3 ellipsis_0.3.2
[56] pkgconfig_2.0.3 XML_3.99-0.10 Gviz_1.40.1 nnet_7.3-17 dbplyr_2.2.0
[61] utf8_1.2.2 janitor_2.1.0 tidyselect_1.1.2 rlang_1.0.3 AnnotationDbi_1.58.0
[66] munsell_0.5.0 cellranger_1.1.0 tools_4.2.1 cachem_1.0.6 cli_3.3.0
[71] generics_0.1.2 RSQLite_2.2.14 broom_1.0.0 evaluate_0.15 stringr_1.4.0
[76] fastmap_1.1.0 yaml_2.3.5 knitr_1.39 bit64_4.0.5 purrr_0.3.4
[81] AnnotationFilter_1.20.0 KEGGREST_1.36.2 nlme_3.1-158 xml2_1.3.3 biomaRt_2.52.0
[86] compiler_4.2.1 rstudioapi_0.13 filelock_1.0.2 curl_4.3.2 png_0.1-7
[91] tibble_3.1.7 stringi_1.7.6 GenomicFeatures_1.48.3 lattice_0.20-45 ProtGenerics_1.28.0
[96] Matrix_1.4-1 nloptr_2.0.3 vctrs_0.4.1 pillar_1.7.0 GenomicInteractions_1.30.0
[101] lifecycle_1.0.1 data.table_1.14.2 bitops_1.0-7 rtracklayer_1.56.1 GenomicRanges_1.48.0
[106] R6_2.5.1 BiocIO_1.6.0 latticeExtra_0.6-29 hierNet_1.9 gridExtra_2.3
[111] IRanges_2.30.0 codetools_0.2-18 dichromat_2.0-0.1 boot_1.3-28 MASS_7.3-57
[116] assertthat_0.2.1 SummarizedExperiment_1.26.1 rjson_0.2.21 withr_2.5.0 GenomicAlignments_1.32.0
[121] Rsamtools_2.12.0 S4Vectors_0.34.0 GenomeInfoDbData_1.2.8 parallel_4.2.1 hms_1.1.1
[126] grid_4.2.1 rpart_4.1.16 tidyr_1.2.0 glmmTMB_1.1.3 minqa_1.2.4
[131] rmarkdown_2.14 snakecase_0.11.0 MatrixGenerics_1.8.0 biovizBase_1.44.0 numDeriv_2016.8-1.1
[136] Biobase_2.56.0 lubridate_1.8.0 base64enc_0.1-3 restfulr_0.0.15