Unable to insert skeleton (the cursor is not currently inside an R function definition).

Hi community,
When I was developing a package, I want to insert a Roxygen. It always happens as below. May I please know how to solve the problem?

> sessionInfo()
R version 3.6.1 (2019-07-05)
Platform: x86_64-apple-darwin15.6.0 (64-bit)
Running under: macOS Mojave 10.14.6

Matrix products: default
BLAS:   /System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vecLib.framework/Versions/A/libBLAS.dylib
LAPACK: /Library/Frameworks/R.framework/Versions/3.6/Resources/lib/libRlapack.dylib

[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  
[7] base     

other attached packages:
[1] aaa_0.1.0               RoxygenReady_0.0.0.9000
[3] roxygen2_6.1.1         

loaded via a namespace (and not attached):
 [1] Rcpp_1.0.2       crayon_1.3.4     withr_2.1.2     
 [4] rprojroot_1.3-2  assertthat_0.2.1 commonmark_1.7  
 [7] R6_2.4.0         backports_1.1.4  magrittr_1.5    
[10] rlang_0.4.0      stringi_1.4.3    rstudioapi_0.10 
[13] testthat_2.2.1   xml2_1.2.2       desc_1.2.0      
[16] tools_3.6.1      stringr_1.4.0    pkgload_1.0.2   
[19] compiler_3.6.1

Hi Chloe,

Your mouse cursor needs to be inside the body of the function. Click anywhere inside the { } of the function and try again. It should work then.


Hi @mattwarkentin,

Thank you! Finally, I see the reason!!

Best regards,


1 Like

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.