我想在RStudio云上使用reprex
reprex手册上说:
当剪贴板在结构上不可用时(例如,在服务器或RStudio云上),reprex()将参考当前选择而不是剪贴板
但是,当我在RStudio云上的脚本中选择我的代码并在控制台中键入reprex::reprex()时,我会得到以下消息:
No user-supplied code found … so we’ve made some up. You’re welcome!
``` r
sprintf(“快乐%s!",平日(Sys.Date()
#> 1“星期四快乐!”
<sup>Created on 202
library(tidyverse)
Error: package or namespace load failed for ‘tidyverse’ in loadNamespace(j <- i[[1L]], c(lib.loc, .libPaths()), versionCheck = vI[[j]]):
there is no package called ‘reprex’
我正在使用这个版本的R版本4.0.3 (2020-10-10),我也试图安装这个库"reprex“,但我有
install.packages("reprex")
also instal
我在Debian扩展中安装了R程序3.3.3。但是,我无法在R中安装tidyverse。
当我安装R3.5时,我还有其他问题: Rstudio没有启动。如何解决这个问题?我已经做了好几天了,请帮帮我。
我的实际版本
R version 3.3.3 (2017-03-06) -- "Another Canoe"
Copyright (C) 2017 The R Foundation for Statistical Computing
Platform: x86_64-pc-linux-gnu (64-bit)
R is free software and comes with
无法在Linux上生成reprex。当我尝试一个简单的例子时 (y <- 1:4)
mean(y) 我收到以下消息 No input provided and clipboard is not available.
Rendering reprex...
Clipboard on X11 requires 'xclip' (recommended) or 'xsel'.
Unable to put result on the clipboard. How to get it:
* Capture what `reprex()` returns.
[类似于的问题,但建议没有解决此问题]
在Windows7工作计算机上新安装的R 4.0.0和tidyverse返回此经典的创建锁定目录失败错误
install.packages('tidyverse')
WARNING: Rtools is required to build R packages but is not currently installed. Please download and install the appropriate version of Rtools before proceeding:
https://cran.rstudio.com/b