我看了新人发帖指南,想要发一个求助贴,按照指南上写的用reprex()
粘贴运行结果,但是使用的时候遇到这样的问题:
ask <- Merge_finalranked[,4:5]
#> Error in eval(expr, envir, enclos): object 'Merge_finalranked' not found
with(ask,plot(x=Mean,y=n.study))
#> Error in with(ask, plot(x = Mean, y = n.study)): object 'ask' not found
dput(ask)
#> Error in dput(ask): object 'ask' not found
sessionInfo()
#> R version 4.2.1 (2022-06-23)
#> Platform: aarch64-apple-darwin20 (64-bit)
#> Running under: macOS Ventura 13.0
#>
#> Matrix products: default
#> BLAS: /Library/Frameworks/R.framework/Versions/4.2-arm64/Resources/lib/libRblas.0.dylib
#> LAPACK: /Library/Frameworks/R.framework/Versions/4.2-arm64/Resources/lib/libRlapack.dylib
#>
#> locale:
#> [1] en_US.UTF-8/en_US.UTF-8/en_US.UTF-8/C/en_US.UTF-8/en_US.UTF-8
#>
#> attached base packages:
#> [1] stats graphics grDevices utils datasets methods base
#>
#> loaded via a namespace (and not attached):
#> [1] withr_2.5.0 digest_0.6.29 lifecycle_1.0.2 magrittr_2.0.3
#> [5] reprex_2.0.2 evaluate_0.16 highr_0.9 stringi_1.7.8
#> [9] rlang_1.0.6 cli_3.4.1 rstudioapi_0.14 fs_1.5.2
#> [13] rmarkdown_2.16 tools_4.2.1 stringr_1.4.1 glue_1.6.2
#> [17] xfun_0.33 yaml_2.3.5 fastmap_1.1.0 compiler_4.2.1
#> [21] htmltools_0.5.3 knitr_1.40
<sup>Created on 2022-10-29 with reprex v2.0.2</sup>
从中可以看到,reprex函数没读取到我的environment的数据集,请问怎么才能让它正确读取到?