~~ RStudio1.2 can't show diagnostic and code completion for Rcpp

I try both RStudio 1.2 stable and preview version, both can't show diagnostic and code completion for Rcpp, although I have click the option "Show diagnostic for c/c++" and select the option "automatically" for "Show code completion". then I return back to "RStudio-1.1.453.exe", it works again. Is this a bug is RStudio 1.2 ?

rstudioapi::getVersion()
[1] ‘1.1.453’

R.version
_
platform x86_64-w64-mingw32
arch x86_64
os mingw32
system x86_64, mingw32
status
major 3
minor 5.0
year 2018
month 04
day 23
svn rev 74626
language R
version.string R version 3.5.0 (2018-04-23)
nickname Joy in Playing

sessionInfo()
R version 3.5.0 (2018-04-23)
Platform: x86_64-w64-mingw32/x64 (64-bit)
Running under: Windows 7 x64 (build 7601) Service Pack 1
Matrix products: default
locale:
[1] LC_COLLATE=Chinese (Simplified)_People's Republic of China.936
[2] LC_CTYPE=Chinese (Simplified)_People's Republic of China.936
[3] LC_MONETARY=Chinese (Simplified)_People's Republic of China.936
[4] LC_NUMERIC=C
[5] LC_TIME=Chinese (Simplified)_People's Republic of China.936
attached base packages:
[1] stats graphics grDevices utils datasets methods base
other attached packages:
[1] pryr_0.1.4
loaded via a namespace (and not attached):
[1] colorspace_1.3-2 class_7.3-14 rio_0.5.16
[4] rsconnect_0.8.12 rprojroot_1.3-2 htmlTable_1.12
[7] base64enc_0.1-3 fs_1.2.7 rstudioapi_0.10
[10] MatrixModels_0.4-1 ggrepel_0.8.0 prodlim_2018.04.18
[13] lubridate_1.7.4 xml2_1.2.0 codetools_0.2-15
[16] splines_3.5.0 extrafont_0.17 doParallel_1.0.14
[19] knitr_1.20 Formula_1.2-3 mcmc_0.9-5
[22] caret_6.0-83 broom_0.5.2 Rttf2pt1_1.3.7
[25] cluster_2.0.7-1 readr_1.1.1 compiler_3.5.0
[28] httr_1.3.1 recharts_0.0.4 backports_1.1.4
[31] assertthat_0.2.0 Matrix_1.2-14 lazyeval_0.2.1
[34] hrbrthemes_0.6.0 acepack_1.4.1 htmltools_0.3.6
[37] quantreg_5.36 tools_3.5.0 coda_0.19-2
[40] gtable_0.2.0 glue_1.3.1 reshape2_1.4.3
[43] dplyr_0.8.0.1 Rcpp_1.0.1.2 carData_3.0-2
[46] cellranger_1.1.0 writexl_1.1 nlme_3.1-137
[49] extrafontdb_1.0 replyr_1.0.0 iterators_1.0.9
[52] timeDate_3043.102 gower_0.1.2 stringr_1.3.1
[55] openxlsx_4.1.0 rvest_0.3.2 gtools_3.8.1
[58] MASS_7.3-49 zoo_1.8-4 scales_1.0.0
[61] microbenchmark_1.4-4 ipred_0.9-6 hms_0.4.2
[64] parallel_3.5.0 SparseM_1.77 RColorBrewer_1.1-2
[67] yaml_2.2.0 curl_3.2 pbapply_1.3-4
[70] gridExtra_2.3 ggplot2_3.1.0 gdtools_0.1.7
[73] rpart_4.1-13 latticeExtra_0.6-28 stringi_1.1.7
[76] foreach_1.4.4 checkmate_1.8.5 boot_1.3-20
[79] zip_1.0.0 lava_1.6.1 rlang_0.3.4.9002
[82] pkgconfig_2.0.2 evaluate_0.10.1 lattice_0.20-35
[85] purrr_0.3.2 recipes_0.1.4 htmlwidgets_1.3
[88] tidyselect_0.2.5 plyr_1.8.4 magrittr_1.5
[91] wrapr_1.8.6 R6_2.3.0 generics_0.0.2
[94] Hmisc_4.1-1 withr_2.1.2 pillar_1.3.1
[97] haven_2.1.0 foreign_0.8-70 survival_2.41-3
[100] abind_1.4-5 nnet_7.3-12 tibble_2.1.1
[103] crayon_1.3.4 car_3.0-2 rmarkdown_1.10.2
[106] grid_3.5.0 readxl_1.1.0 data.table_1.12.2
[109] ModelMetrics_1.1.0 forcats_0.4.0 digest_0.6.18
[112] tidyr_0.8.3 brotools_0.2 MCMCpack_1.4-4
[115] stats4_3.5.0 munsell_0.5.0 skimr_1.0.5

problem solved by adding this one:

//[[Rcpp::plugins(cpp11)]]

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