Closed jrisi256 closed 4 years ago
Can you pls try this:
# Remove existing summarytools
remove.packages("summarytools")
# Install from github -- pander and summarytools dev-current
install.packages("remotes")
library(remotes)
install_github("rapporter/pander")
install_github("dcomtois/summarytools", ref = "dev-current")
# Load package and change use.x11 option
library(summarytools)
st_options(use.x11 = FALSE)
dfSummary(mtcars)
Hopefully this resolves the issue.
What comes next won't be relevant to you if you work on a terminal-only system, but I put it here for RH - Gnome users (and for myself) as a reference.
From a CRAN mirror > Download R for Linux > Follow instructions from the README file in /bin/linux/redhad
Then...
subscription-manager repos --enable codeready-builder-for-rhel-8-x86_64-rpms
sudo yum install R
sudo yum install ImageMagick-c++-devel
sudo yum install curl-devel
And finally...
install.packages("RCurl")
install.packages("summarytools")
Unfortunately this was not working on RedHat 7, but in the coming weeks I will update to RedHat 8 to see if it works for me then.
Sorry to hear that, hopefully it does work in RH version 8... Keep us posted!
Hi! Sorry for the long delay, Hope you're safe and healthy during corona-virus times.
So I tried the suggested code code chunk in your above comment (dev_tools::install_github()
and using st_options(x11 = F)
however it is still not working. It still displays ASCII art.
Below is a warning message which is displayed when library(summarytools)
is called.
Registered S3 method overwritten by 'pryr':
method from
print.bytes Rcpp
system might not have X11 capabilities; in case of errors when using dfSummary(), set st_options(use.x11 = FALSE)
Warning message:
In fun(libname, pkgname) : couldn't connect to display ":0"
And below is session info
─ Session info ───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────
setting value
version R version 3.6.3 (2020-02-29)
os Red Hat Enterprise Linux 8.1 (Ootpa)
system x86_64, linux-gnu
ui RStudio
language (EN)
collate en_US.UTF-8
ctype en_US.UTF-8
tz America/New_York
date 2020-03-23
─ Packages ───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────
package * version date lib source
assertthat 0.2.1 2019-03-21 [2] CRAN (R 3.6.3)
backports 1.1.5 2019-10-02 [2] CRAN (R 3.6.3)
base64enc 0.1-3 2015-07-28 [2] CRAN (R 3.6.3)
callr 3.4.2 2020-02-12 [2] CRAN (R 3.6.3)
checkmate 2.0.0 2020-02-06 [2] CRAN (R 3.6.3)
cli 2.0.2 2020-02-28 [2] CRAN (R 3.6.3)
codetools 0.2-16 2018-12-24 [3] CRAN (R 3.6.3)
crayon 1.3.4 2017-09-16 [2] CRAN (R 3.6.3)
desc 1.2.0 2018-05-01 [2] CRAN (R 3.6.3)
devtools 2.2.2 2020-02-17 [2] CRAN (R 3.6.3)
digest 0.6.25 2020-02-23 [2] CRAN (R 3.6.3)
dplyr 0.8.4 2020-01-31 [2] CRAN (R 3.6.3)
ellipsis 0.3.0 2019-09-20 [2] CRAN (R 3.6.3)
fansi 0.4.1 2020-01-08 [2] CRAN (R 3.6.3)
fs 1.3.1 2019-05-06 [2] CRAN (R 3.6.3)
glue 1.3.1 2019-03-12 [2] CRAN (R 3.6.3)
htmltools 0.4.0 2019-10-04 [2] CRAN (R 3.6.3)
knitr 1.28 2020-02-06 [2] CRAN (R 3.6.3)
lifecycle 0.1.0 2019-08-01 [2] CRAN (R 3.6.3)
lubridate 1.7.4 2018-04-11 [2] CRAN (R 3.6.3)
magick 2.3 2020-01-24 [2] CRAN (R 3.6.3)
magrittr 1.5 2014-11-22 [2] CRAN (R 3.6.3)
matrixStats 0.55.0 2019-09-07 [2] CRAN (R 3.6.3)
memoise 1.1.0 2017-04-21 [2] CRAN (R 3.6.3)
pander 0.6.4 2020-03-23 [1] Github (rapporter/pander@81dd8d1)
pillar 1.4.3 2019-12-20 [2] CRAN (R 3.6.3)
pkgbuild 1.0.6 2019-10-09 [2] CRAN (R 3.6.3)
pkgconfig 2.0.3 2019-09-22 [2] CRAN (R 3.6.3)
pkgload 1.0.2 2018-10-29 [2] CRAN (R 3.6.3)
plyr 1.8.5 2019-12-10 [2] CRAN (R 3.6.3)
prettyunits 1.1.1 2020-01-24 [2] CRAN (R 3.6.3)
processx 3.4.2 2020-02-09 [2] CRAN (R 3.6.3)
pryr 0.1.4 2018-02-18 [2] CRAN (R 3.6.3)
ps 1.3.2 2020-02-13 [2] CRAN (R 3.6.3)
purrr 0.3.3 2019-10-18 [2] CRAN (R 3.6.3)
R6 2.4.1 2019-11-12 [2] CRAN (R 3.6.3)
rapportools 1.0 2014-01-07 [2] CRAN (R 3.6.3)
Rcpp 1.0.3 2019-11-08 [2] CRAN (R 3.6.3)
remotes 2.1.1 2020-02-15 [2] CRAN (R 3.6.3)
rlang 0.4.5 2020-03-01 [2] CRAN (R 3.6.3)
rprojroot 1.3-2 2018-01-03 [2] CRAN (R 3.6.3)
rstudioapi 0.11 2020-02-07 [2] CRAN (R 3.6.3)
sessioninfo 1.1.1 2018-11-05 [2] CRAN (R 3.6.3)
stringi 1.4.6 2020-02-17 [2] CRAN (R 3.6.3)
stringr 1.4.0 2019-02-10 [2] CRAN (R 3.6.3)
summarytools * 0.9.6 2020-03-23 [1] Github (dcomtois/summarytools@9af4c0a)
testthat 2.3.2 2020-03-02 [2] CRAN (R 3.6.3)
tibble 2.1.3 2019-06-06 [2] CRAN (R 3.6.3)
tidyr 1.0.2 2020-01-24 [2] CRAN (R 3.6.3)
tidyselect 1.0.0 2020-01-27 [2] CRAN (R 3.6.3)
usethis 1.5.1 2019-07-04 [2] CRAN (R 3.6.3)
vctrs 0.2.3 2020-02-20 [2] CRAN (R 3.6.3)
withr 2.1.2 2018-03-15 [2] CRAN (R 3.6.3)
xfun 0.12 2020-01-13 [2] CRAN (R 3.6.3)
[1] /home/danbergbiggs/R/x86_64-pc-linux-gnu-library/3.6
[2] /opt/R/3.6.3/lib/R/site-library
[3] /opt/R/3.6.3/lib/R/library
Hello,
I'm healthy and safe, thank you. I wish you all the same :)
Just to make sure I understand clearly what's going on, could you pls post a screen shot of the results you get, as well as the results you're looking for (image or link to an online document)? Thx!
Below is what I'm seeing.
Below is what I'd like to be able to do (section 2.4). But this may not be possible without X11 tunneling.
https://cran.r-project.org/web/packages/summarytools/vignettes/Introduction.html
Oh ok now I understand... I thought by "ascii art" you meant something was wrong with the text graphs. You're correct (to my knowledge) to say that without X11, it is not possible to generate graphical devices, specifically you can't generate the png's used in the html summaries.
Thanks for the clarification. It may be beyond the scope of my request, but do you know of any documentation or anything which could help in setting up X11 through ssh tunnelling?
Sorry, I can't really point you to anything different from what Google would, as I have never tried this. Good luck and let us know if you succeed, as I'm sure other users will also run into that issue at some point. Thanks!
Thanks for making such a great package!
I am having an issue where when I use dfSummary() on a data frame, ASCII art is used in the "Graph" column.
I also tried using it within a markdown document and had a similar issue.
After some searching around, I realized because I'm using Red Hat 7, X11 was not available.
Some further searching suggested I use ssh tunneling to connect to an X11 device. However, I don't have the ability to do that.
Is there anything you could recommend to help fix this issue? Thanks.
EDIT: I also tried using an earlier version of summarytools (version 0.8.8), and this also did not work.
Below is my session info: