ERROR: $ operator is invalid for atomic vectors
Closed this issue · 5 comments
Hello,
Many thanks for this very useful package.
After installing and running:
shinycsv::explore()
a new window opens and I get the following error:
ERROR: $ operator is invalid for atomic vectors
Any help would be much appreciated.
Best wishes,
Dimitris
Hi,
Can you post your R session information?
options(width = 120)
devtools::session_info()
Best,
Leonardo
Hi Leonardo,
Please find it below:
Session info ----------------------------------------------------------------------------------------------------------
setting value
version R version 3.5.0 (2018-04-23)
system x86_64, darwin15.6.0
ui RStudio (1.1.383)
language (EN)
collate en_GB.UTF-8
tz Europe/London
date 2018-05-02
Packages --------------------------------------------------------------------------------------------------------------
package * version date source
base * 3.5.0 2018-04-24 local
cellranger 1.1.0 2016-07-27 CRAN (R 3.5.0)
colorspace 1.3-2 2016-12-14 CRAN (R 3.5.0)
compiler 3.5.0 2018-04-24 local
crosstalk 1.0.0 2016-12-21 CRAN (R 3.5.0)
curl 3.2 2018-03-28 CRAN (R 3.5.0)
data.table 1.10.4-3 2017-10-27 CRAN (R 3.5.0)
datasets * 3.5.0 2018-04-24 local
devtools 1.13.5 2018-02-18 CRAN (R 3.5.0)
digest 0.6.15 2018-01-28 CRAN (R 3.5.0)
DT 0.4 2018-01-30 CRAN (R 3.5.0)
forcats 0.3.0 2018-02-19 CRAN (R 3.5.0)
foreign 0.8-70 2017-11-28 CRAN (R 3.5.0)
graphics * 3.5.0 2018-04-24 local
grDevices * 3.5.0 2018-04-24 local
grid 3.5.0 2018-04-24 local
haven 1.1.1 2018-01-18 CRAN (R 3.5.0)
htmltools 0.3.6 2017-04-28 CRAN (R 3.5.0)
htmlwidgets 1.2 2018-04-19 CRAN (R 3.5.0)
httpuv 1.4.1 2018-04-21 CRAN (R 3.5.0)
later 0.7.2 2018-05-01 Github (r-lib/later@207d4e0)
lattice 0.20-35 2017-03-25 CRAN (R 3.5.0)
lmtest 0.9-36 2018-04-04 CRAN (R 3.5.0)
magrittr 1.5 2014-11-22 CRAN (R 3.5.0)
MASS 7.3-49 2018-02-23 CRAN (R 3.5.0)
memoise 1.1.0 2017-04-21 CRAN (R 3.5.0)
methods * 3.5.0 2018-04-24 local
mime 0.5 2016-07-07 CRAN (R 3.5.0)
openxlsx 4.0.17 2017-03-23 CRAN (R 3.5.0)
pillar 1.2.2 2018-04-26 CRAN (R 3.5.0)
promises 1.0.1 2018-04-13 CRAN (R 3.5.0)
R6 2.2.2 2017-06-17 CRAN (R 3.5.0)
RColorBrewer 1.1-2 2014-12-07 CRAN (R 3.5.0)
Rcpp 0.12.16 2018-03-13 CRAN (R 3.5.0)
readxl 1.1.0 2018-04-20 CRAN (R 3.5.0)
rio 0.5.10 2018-03-29 CRAN (R 3.5.0)
rlang 0.2.0 2018-02-20 CRAN (R 3.5.0)
rsconnect 0.8.8 2018-03-09 CRAN (R 3.5.0)
shiny * 1.0.5 2017-08-23 CRAN (R 3.5.0)
shinycsv * 0.99.7 2018-05-01 Github (LieberInstitute/shinycsv@260d813)
stats * 3.5.0 2018-04-24 local
tibble 1.4.2 2018-01-22 CRAN (R 3.5.0)
tools 3.5.0 2018-04-24 local
utils * 3.5.0 2018-04-24 local
vcd 1.4-4 2017-12-06 CRAN (R 3.5.0)
withr 2.1.2 2018-03-15 CRAN (R 3.5.0)
xtable 1.8-2 2016-02-05 CRAN (R 3.5.0)
yaml 2.1.19 2018-05-01 CRAN (R 3.5.0)
zoo 1.8-1 2018-01-08 CRAN (R 3.5.0)
Thanks. I can also reproduce this in R 3.4.4:
> options(width = 120)
> devtools::session_info()
Session info ----------------------------------------------------------------------------------------------------------
setting value
version R version 3.4.4 (2018-03-15)
system x86_64, darwin15.6.0
ui AQUA
language (EN)
collate en_US.UTF-8
tz America/New_York
date 2018-05-01
Packages --------------------------------------------------------------------------------------------------------------
package * version date source
base * 3.4.4 2018-03-15 local
cellranger 1.1.0 2016-07-27 CRAN (R 3.4.0)
colorspace 1.3-2 2016-12-14 CRAN (R 3.4.0)
compiler 3.4.4 2018-03-15 local
crosstalk 1.0.0 2016-12-21 CRAN (R 3.4.0)
curl 3.2 2018-03-28 CRAN (R 3.4.4)
data.table 1.10.4-3 2017-10-27 CRAN (R 3.4.2)
datasets * 3.4.4 2018-03-15 local
devtools 1.13.5 2018-02-18 CRAN (R 3.4.3)
digest 0.6.15 2018-01-28 CRAN (R 3.4.3)
DT 0.4 2018-01-30 CRAN (R 3.4.3)
forcats 0.3.0 2018-02-19 CRAN (R 3.4.3)
foreign 0.8-70 2018-04-23 CRAN (R 3.4.4)
graphics * 3.4.4 2018-03-15 local
grDevices * 3.4.4 2018-03-15 local
grid 3.4.4 2018-03-15 local
haven 1.1.1 2018-01-18 CRAN (R 3.4.3)
htmltools 0.3.6 2017-04-28 CRAN (R 3.4.0)
htmlwidgets 1.2 2018-04-19 CRAN (R 3.4.4)
httpuv 1.4.1 2018-04-21 CRAN (R 3.4.4)
later 0.7.1 2018-03-07 CRAN (R 3.4.4)
lattice 0.20-35 2017-03-25 CRAN (R 3.4.4)
lmtest 0.9-36 2018-04-04 CRAN (R 3.4.4)
magrittr 1.5 2014-11-22 CRAN (R 3.4.0)
MASS 7.3-49 2018-02-23 CRAN (R 3.4.4)
memoise 1.1.0 2017-04-21 CRAN (R 3.4.0)
methods * 3.4.4 2018-03-15 local
mime 0.5 2016-07-07 CRAN (R 3.4.0)
openxlsx 4.0.17 2017-03-23 CRAN (R 3.4.0)
pillar 1.2.2 2018-04-26 CRAN (R 3.4.4)
promises 1.0.1 2018-04-13 CRAN (R 3.4.4)
R6 2.2.2 2017-06-17 CRAN (R 3.4.0)
RColorBrewer 1.1-2 2014-12-07 CRAN (R 3.4.0)
Rcpp 0.12.16 2018-03-13 CRAN (R 3.4.4)
readxl 1.1.0 2018-04-20 CRAN (R 3.4.4)
rio 0.5.10 2018-03-29 CRAN (R 3.4.4)
rlang 0.2.0 2018-02-20 CRAN (R 3.4.3)
shiny * 1.0.5 2017-08-23 CRAN (R 3.4.1)
shinycsv 0.99.7 2018-01-09 Github (LieberInstitute/shinycsv@260d813)
stats * 3.4.4 2018-03-15 local
tibble 1.4.2 2018-01-22 CRAN (R 3.4.3)
tools 3.4.4 2018-03-15 local
utils * 3.4.4 2018-03-15 local
vcd 1.4-4 2017-12-06 CRAN (R 3.4.3)
withr 2.1.2 2018-03-15 CRAN (R 3.4.4)
xtable 1.8-2 2016-02-05 CRAN (R 3.4.0)
yaml 2.1.18 2018-03-08 cran (@2.1.18)
zoo 1.8-1 2018-01-08 CRAN (R 3.4.3)
From the traceback dump it looks like it's related to tags$a
. I'll look into this soon
Loading required package: shiny
Listening on http://127.0.0.1:3920
Warning: Error in $: $ operator is invalid for atomic vectors
Stack trace (innermost first):
61: tag
60: tags$a
59: tag
58: tags$li
57: FUN
56: lapply
55: buildTabset
54: tabsetPanel
53: tag
52: tags$div
51: div
50: mainPanel
49: sidebarLayout
48: tag
47: tags$div
46: div
45: tabPanel
44: navbarPage
43: shinyUI
2: runApp
1: shinycsv::explore
Warning: Error in $: $ operator is invalid for atomic vectors
Stack trace (innermost first):
61: tag
60: tags$a
59: tag
58: tags$li
57: FUN
56: lapply
55: buildTabset
54: tabsetPanel
53: tag
52: tags$div
51: div
50: mainPanel
49: sidebarLayout
48: tag
47: tags$div
46: div
45: tabPanel
44: navbarPage
43: shinyUI
2: runApp
1: shinycsv::explore
Hi,
Version 0.99.8 solves this problem. So try installing it again. I recognized the problem from other shiny apps I've made, so I knew where to look.
Best,
Leonardo
Many thanks Leonardo for the prompt response and solution
I can confirm that it works now
Best wishes,
Dimitris