I have problem with the function ggparagraph() from ggpubr package. Its content is not drawing. If I use the function:
example(ggparagraph)
The plot is drawing without any problem, but the "ggparagraph area" (below plot) is empty. The same problem is if I use custom scripts, where the ggparagraph is applied.
R does not print any error message. Where can be the problem?
My session info is:
sessionInfo()
R version 3.4.1 (2017-06-30)
Platform: x86_64-w64-mingw32/x64 (64-bit)
Running under: Windows 10 x64 (build 15063)
Matrix products: default
locale:
1 LC_COLLATE=Slovak_Slovakia.1250 LC_CTYPE=Slovak_Slovakia.1250
[3] LC_MONETARY=Slovak_Slovakia.1250 LC_NUMERIC=C
[5] LC_TIME=Slovak_Slovakia.1250
attached base packages:
1 stats graphics grDevices utils datasets methods base
other attached packages:
1 ggpubr_0.1.4 magrittr_1.5 gridExtra_2.2.1 dplyr_0.7.2
[5] purrr_0.2.3 readr_1.1.1 tidyr_0.6.3 tibble_1.3.3
[9] ggplot2_2.2.1 tidyverse_1.1.1
loaded via a namespace (and not attached):
1 Rcpp_0.12.12 cellranger_1.1.0 compiler_3.4.1 plyr_1.8.4
[5] bindr_0.1 forcats_0.2.0 tools_3.4.1 jsonlite_1.5
[9] lubridate_1.6.0 nlme_3.1-131 gtable_0.2.0 lattice_0.20-35
[13] pkgconfig_2.0.1 rlang_0.1.2 psych_1.7.5 parallel_3.4.1
[17] haven_1.1.0 bindrcpp_0.2 xml2_1.1.1 stringr_1.2.0
[21] httr_1.2.1 hms_0.3 cowplot_0.8.0 grid_3.4.1
[25] glue_1.1.1 R6_2.2.2 readxl_1.0.0 foreign_0.8-69
[29] reshape2_1.4.2 modelr_0.1.1 scales_0.4.1 rvest_0.3.2
[33] assertthat_0.2.0 mnormt_1.5-5 colorspace_1.3-2 labeling_0.3
[37] stringi_1.1.5 lazyeval_0.2.0 munsell_0.4.3 broom_0.4.2
Finally, I don't find where is the problem, but if I install this package from github (instead of CRAN), all paragraphs are rendered correctly.
Related
I am trying to install DSUR.noof package from GitHub and followed the instructions accordingly
install.packages("devtools")
library(devtools)
install_github("Frostarella/DSUR.noof")
When I try to run the last command(install_github("Frostarella/DSUR.noof") I am getting the below error in Rstudio
Error: 'setInternet2' is defunct.
what could went wrong ? can some one help me
> sessionInfo()
R version 3.5.1 (2018-07-02)
Platform: x86_64-w64-mingw32/x64 (64-bit)
Running under: Windows >= 8 x64 (build 9200)
Matrix products: default
locale:
[1] LC_COLLATE=English_Sweden.1252
[2] LC_CTYPE=English_Sweden.1252
[3] LC_MONETARY=English_Sweden.1252
[4] LC_NUMERIC=C
[5] LC_TIME=English_Sweden.1252
attached base packages:
[1] stats graphics grDevices utils datasets
[6] methods base
other attached packages:
[1] usethis_1.4.0 devtools_2.0.1 ggplot2_3.1.0
loaded via a namespace (and not attached):
[1] Rcpp_0.12.18 pillar_1.3.0 compiler_3.5.1
[4] plyr_1.8.4 bindr_0.1.1 remotes_2.0.2
[7] prettyunits_1.0.2 tools_3.5.1 digest_0.6.15
[10] pkgbuild_1.0.2 pkgload_1.0.2 memoise_1.1.0
[13] tibble_1.4.2 gtable_0.2.0 pkgconfig_2.0.1
[16] rlang_0.2.1 cli_1.0.0 rstudioapi_0.7
[19] yaml_2.2.0 bindrcpp_0.2.2 withr_2.1.2
[22] dplyr_0.7.6 fs_1.2.6 desc_1.2.0
[25] rprojroot_1.3-2 grid_3.5.1 tidyselect_0.2.4
[28] glue_1.3.0 R6_2.2.2 processx_3.2.1
[31] sessioninfo_1.1.1 purrr_0.2.5 callr_3.1.1
[34] magrittr_1.5 backports_1.1.2 scales_1.0.0
[37] ps_1.3.0 assertthat_0.2.0 colorspace_1.4-0
[40] labeling_0.3 lazyeval_0.2.1 munsell_0.5.0
[43] crayon_1.3.4
I was running on Anaconda Rstudio before, then installed CRAN R problem solved.....
rate_limit() from rtweet returns wrong value in column reset. Instead of showing 15, it shows values around 14.59. It varies between 14.59 and 14.61. I think it is not a problem with rtweet package but probably with either my system or time I have set on my computer.
I can not figure out what might be the reason. The only thing I managed to find out is that when I use Sys.time on my computer and some other computer, on which rate_limit works fine, there is 25 seconds difference. 25 seconds is around 41% of a minute so it seems that it might be a problem, however I don't know how to solve it. Below SessionInfo:
R version 3.4.3 (2017-11-30)
Platform: x86_64-apple-darwin15.6.0 (64-bit)
Running under: macOS High Sierra 10.13.3
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.4/Resources/lib/libRlapack.dylib
locale:
[1] pl_PL.UTF-8/pl_PL.UTF-8/pl_PL.UTF-8/C/pl_PL.UTF-8/pl_PL.UTF-8
attached base packages:
[1] stats graphics grDevices utils datasets methods base
other attached packages:
[1] bindrcpp_0.2 feather_0.3.1 magrittr_1.5 forcats_0.2.0 stringr_1.2.0 dplyr_0.7.4
[7] purrr_0.2.4 readr_1.1.1 tidyr_0.7.2 tibble_1.3.4 ggplot2_2.2.1 tidyverse_1.2.1
[13] rtweet_0.6.0
loaded via a namespace (and not attached):
[1] reshape2_1.4.3 haven_1.1.0 lattice_0.20-35 colorspace_1.3-2 htmltools_0.3.6 base64enc_0.1-3
[7] yaml_2.1.14 rlang_0.1.4 foreign_0.8-69 glue_1.1.1 bit64_0.9-7 modelr_0.1.1
[13] readxl_1.0.0 bindr_0.1 plyr_1.8.4 munsell_0.4.3 gtable_0.2.0 cellranger_1.1.0
[19] rvest_0.3.2 evaluate_0.10.1 psych_1.7.8 knitr_1.17 httpuv_1.3.5 parallel_3.4.3
[25] curl_2.8.1 broom_0.4.2 Rcpp_0.12.13 openssl_0.9.7 scales_0.5.0 backports_1.1.1
[31] jsonlite_1.5 bit_1.1-12 mnormt_1.5-5 hms_0.3 digest_0.6.12 stringi_1.1.5
[37] grid_3.4.3 rprojroot_1.2 cli_1.0.0 tools_3.4.3 lazyeval_0.2.0 crayon_1.3.4
[43] pkgconfig_2.0.1 xml2_1.1.1 lubridate_1.7.2 assertthat_0.2.0 rmarkdown_1.6 httr_1.3.1
[49] rstudioapi_0.7 R6_2.2.2 nlme_3.1-131 compiler_3.4.3
Somehow the issue solved itself. I changed timezone (traveled from US back to Europe) and now it works fine.
I am trying to run (in R) this off-the-shelf example from the Resource Map function help page:
library(bupaR)
library(eventdataR)
data(patients)
resource_map(patients)
and somehow it is returning this error:
Error: UQ() can only be used within a quasiquoted argument
Can someone help me understand and propose a fix as well? Is it something with my R/Rstudio, because this example comes straight from the "resource_map" help page.
Here is the sessioninfo:
R version 3.4.3 (2017-11-30) Platform: x86_64-apple-darwin15.6.0
(64-bit) Running under: macOS High Sierra 10.13.3
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.4/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
other attached packages: [1] bindrcpp_0.2 xesreadR_0.2.2
processmonitR_0.1.0 processmapR_0.2.1 eventdataR_0.1.2
petrinetR_0.1.0 [7] edeaR_0.7.2 bupaR_0.3.2
loaded via a namespace (and not attached): [1] Rook_1.1-1
purrr_0.2.4 ggthemes_3.4.0 colorspace_1.3-2
viridisLite_0.3.0 miniUI_0.1.1 [7] htmltools_0.3.6
yaml_2.1.17 plotly_4.7.1 XML_3.98-1.10
rlang_0.2.0 pillar_1.2.1 [13] glue_1.2.0
RColorBrewer_1.1-2 bindr_0.1 plyr_1.8.4
stringr_1.3.0 munsell_0.4.3 [19] gtable_0.2.0
visNetwork_2.0.3 htmlwidgets_1.0 forcats_0.3.0
httpuv_1.3.6.2 DiagrammeR_0.9.2 [25] Rcpp_0.12.15
xtable_1.8-2 readr_1.1.1 scales_0.5.0
jsonlite_1.5 rgexf_0.15.3 [31] mime_0.5
gridExtra_2.3 brew_1.0-6 ggplot2_2.2.1 hms_0.4.1
digest_0.6.15 [37] stringi_1.1.6 dplyr_0.7.4
shiny_1.0.5 grid_3.4.3 influenceR_0.1.0
tools_3.4.3 [43] magrittr_1.5 lazyeval_0.2.1
tibble_1.4.2 tidyr_0.8.0 pkgconfig_2.0.1 xml2_1.2.0
[49] data.table_1.10.4-3 downloader_0.4 lubridate_1.7.3
httr_1.3.1 assertthat_0.2.0 rstudioapi_0.7 [55]
viridis_0.5.0 R6_2.2.2 igraph_1.1.2
shinyTime_0.2.1 compiler_3.4.3
Thanks!
My Rmarkdown source looks like (screenshot from RStudio):
(notice the empty lines)
When I press CTRL+Shift+k I got view as expected (with empty lines). However, if I run the chunk (evaluate) and then compile (CTRL+Shift+k), I get:
(no empty lines)
Is there any way how to preserve the empty lines in the source code? (I checked knitr options: strip.white=FALSE, tidy=TRUE, tidy.opts=list(blank=TRUE) but no joy.)
I'm using RStudio 1.0.153
Other info:
sessionInfo()
R version 3.4.1 (2017-06-30)
Platform: x86_64-pc-linux-gnu (64-bit)
Running under: Debian GNU/Linux 9 (stretch)
Matrix products: default
BLAS: /usr/lib/openblas-base/libblas.so.3
LAPACK: /usr/lib/libopenblasp-r0.2.19.so
locale:
[1] LC_CTYPE=en_US.UTF-8 LC_NUMERIC=C
[3] LC_TIME=en_US.UTF-8 LC_COLLATE=en_US.UTF-8
[5] LC_MONETARY=en_US.UTF-8 LC_MESSAGES=en_US.UTF-8
[7] LC_PAPER=en_US.UTF-8 LC_NAME=C
[9] 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] rvest_0.3.2 xml2_1.1.1 dplyr_0.7.1 purrr_0.2.2.2
[5] readr_1.1.1 tidyr_0.6.3 tibble_1.3.3 ggplot2_2.2.1
[9] tidyverse_1.1.1
loaded via a namespace (and not attached):
[1] pbdZMQ_0.2-6 reshape2_1.4.2 haven_1.1.0 lattice_0.20-35
[5] colorspace_1.3-2 htmltools_0.3.6 yaml_2.1.14 base64enc_0.1-3
[9] XML_3.98-1.9 rlang_0.1.1 foreign_0.8-69 glue_1.1.1
[13] selectr_0.3-1 readxl_1.0.0 modelr_0.1.0 semver_0.2.0
[17] bindrcpp_0.2 bindr_0.1 plyr_1.8.4 stringr_1.2.0
[21] cellranger_1.1.0 munsell_0.4.3 binman_0.1.0 gtable_0.2.0
[25] caTools_1.17.1 psych_1.7.5 evaluate_0.10.1 knitr_1.16
[29] forcats_0.2.0 wdman_0.2.2 curl_2.7 parallel_3.4.1
[33] broom_0.4.2 Rcpp_0.12.11 openssl_0.9.6 backports_1.1.0
[37] scales_0.4.1 formatR_1.5 RSelenium_1.7.1 jsonlite_1.5
[41] mnormt_1.5-5 hms_0.3 digest_0.6.12 stringi_1.1.5
[45] grid_3.4.1 rprojroot_1.2 tools_3.4.1 bitops_1.0-6
[49] magrittr_1.5 lazyeval_0.2.0 pkgconfig_2.0.1 lubridate_1.6.0
[53] httr_1.2.1 assertthat_0.2.0 rmarkdown_1.6 R6_2.2.2
[57] nlme_3.1-131 compiler_3.4.1
As far as I can see, you can't do that with an HTML notebook. If you don't need all the special notebook features, you can ask for an html_document instead of an html_notebook and formatting will be preserved. If you do need the notebook features, you probably need to make a feature request on the rmarkdown development page https://github.com/rstudio/rmarkdown to add this.
im tryring to run dcc.est from the ccgarch-package.
Even though I installed the package and attached it with library(ccgarch), I get the following error:
library(ccgarch)
dcc <- dcc.est(dvar, param)
Error: could not find function "dcc.est"
I also tried the following:
dcc <- ccgarch::dcc.est(dvar, param)
Error: object 'dcc.est' is not exported by 'namespace:ccgarch'
Accordingly to the vignette of ccgarch version 0.2.3 (https://cran.r-project.org/web/packages/ccgarch/ccgarch.pdf) , dcc.est is part of the package. What am I doing wrong?
See my sessionInfobelow:
> sessionInfo()
R version 3.3.2 (2016-10-31)
Platform: x86_64-w64-mingw32/x64 (64-bit)
Running under: Windows >= 8 x64 (build 9200)
locale:
[1] LC_COLLATE=German_Germany.1252 LC_CTYPE=German_Germany.1252 LC_MONETARY=German_Germany.1252
[4] LC_NUMERIC=C LC_TIME=German_Germany.1252
attached base packages:
[1] parallel stats graphics grDevices utils datasets methods base
other attached packages:
[1] pracma_1.9.5 kerdiest_1.2 evir_1.7-3 chron_2.3-48 date_1.2-35
[6] fGarch_3010.82.1 fBasics_3011.87 timeSeries_3022.101.2 timeDate_3012.100 rugarch_1.3-6
[11] tsDyn_0.9-44 ccgarch_0.2.3 gdata_2.17.0 gtools_3.5.0 tidyr_0.6.0
[16] dplyr_0.5.0
loaded via a namespace (and not attached):
[1] rgl_0.96.0 Rcpp_0.12.8 mvtnorm_1.0-5 lattice_0.20-34
[5] zoo_1.7-14 assertthat_0.1 digest_0.6.10 lmtest_0.9-34
[9] foreach_1.4.3 mime_0.5 truncnorm_1.0-7 R6_2.2.0
[13] plyr_1.8.4 tseriesChaos_0.1-13 ggplot2_2.2.0 lazyeval_0.2.0
[17] misc3d_0.8-4 fracdiff_1.4-2 nloptr_1.0.4 SkewHyperbolic_0.3-2
[21] Matrix_1.2-7.1 htmlwidgets_0.8 munsell_0.4.3 shiny_0.14.2
[25] numDeriv_2016.8-1 httpuv_1.3.3 DistributionUtils_0.5-1 mnormt_1.5-5
[29] forecast_7.3 urca_1.3-0 mgcv_1.8-15 htmltools_0.3.5
[33] vars_1.5-2 nnet_7.3-12 Rsolnp_1.16 multicool_0.1-10
[37] expm_0.999-0 tibble_1.2 quadprog_1.5-5 codetools_0.2-15
[41] MASS_7.3-45 GeneralizedHyperbolic_0.8-1 grid_3.3.2 nlme_3.1-128
[45] jsonlite_1.1 xtable_1.8-2 gtable_0.2.0 DBI_0.5-1
[49] magrittr_1.5 scales_0.4.1 KernSmooth_2.23-15 tseries_0.10-36
[53] xts_0.9-7 sandwich_2.3-4 spd_2.0-1 iterators_1.0.8
[57] tools_3.3.2 ks_1.10.4 colorspace_1.3-2 knitr_1.15.1
If you look at the NAMESPACE you see that dcc.est is commented out (it may have be replaced by dcc.estimation - just a guess, I've never used the package?).
This means it is not exported by the package, but it's still there, only as an internal function. You can access internal functions by using 3 colons
ccgarch:::dcc.est
As it's in the documentation I think somewhere along the line of updates and releases someone forgot to remove it properly, or un-comment it again in the export list.