JohnCoene / tippy

💬 Tippy.js for Shiny
http://tippy.john-coene.com/
Other
76 stars 2 forks source link

Error in "with_tippy" and "tippy_class" #4

Closed andirey closed 3 years ago

andirey commented 5 years ago

I tried to test demo code and get these errors:

Error in with_tippy(textInput("text", "Text"), tooltip = "TEXT") : could not find function "with_tippy"

Error in tippy_class("tip", content = "Tooltip") : could not find function "tippy_class"

Will be happy to fix it in some way

Thanks Andrii

JohnCoene commented 5 years ago

I think the latest version has not made it onto CRAN yet. Use the dev version from Github.

You can get it with the remotes or devtools package:

# install remotes if you do not have it already
install.packages("remotes")

# install the dev version
remotes::install_github("JohnCoene/tippy")

Let me know if this works

andirey commented 5 years ago

I used versions from github and CRAN. In both cases, I have these errors

stevepowell99 commented 5 years ago

same here. version from github.

JohnCoene commented 5 years ago

Interesting, just tried this second as I saw @stevepowell99 message and still can't reproduce.

>  with_tippy(textInput("text", "Text"), tooltip = "TEXT")
<div class="form-group shiny-input-container" data-tippy="TEXT">
  <label for="text">Text</label>
  <input id="text" type="text" class="form-control" value=""/>
</div>
<span id="htmlwidget-0730e3f8ac6f8d71c88e" class="tippy html-widget" width="960" height="500"></span>
<script type="application/json" data-for="htmlwidget-0730e3f8ac6f8d71c88e">{"x":{"element":null,"opts":[]},"evals":[],"jsHooks":[]}</script>

Could you please post your sessionInfo and I'll investigate.

stevepowell99 commented 5 years ago

thanks R version 3.6.0 (2019-04-26) Platform: x86_64-w64-mingw32/x64 (64-bit) Running under: Windows 10 x64 (build 18362)

Matrix products: default

locale: [1] LC_COLLATE=English_United Kingdom.1252 [2] LC_CTYPE=English_United Kingdom.1252 [3] LC_MONETARY=English_United Kingdom.1252 [4] LC_NUMERIC=C [5] LC_TIME=English_United Kingdom.1252

attached base packages: [1] stats graphics grDevices utils datasets methods [7] base

other attached packages: [1] tippy_0.1.0 formattable_0.2.0.1 [3] stringi_1.4.3 shape_1.4.4 [5] rpivotTable_0.3.0 DiagrammeR_1.0.1 [7] ggraph_1.0.2 colourpicker_1.0 [9] plotly_4.9.0 visNetwork_2.0.7 [11] rdrop2_0.8.1.9999 shinycssloaders_0.2.0 [13] googlesheets4_0.0.0.9001 googledrive_0.1.3.9000 [15] tidygraph_1.1.2 networkD3_0.4 [17] shinyPagerUI_0.2.0 rhandsontable_0.3.7 [19] r2d3_0.2.3 glue_1.3.1 [21] shinyjs_1.0 shinyBS_0.61 [23] shinyjqui_0.3.2 scales_1.0.0 [25] readxl_1.3.1 webshot_0.5.1 [27] shinyWidgets_0.4.8 shinythemes_1.1.2 [29] igraph_1.2.4.1 forcats_0.4.0 [31] stringr_1.4.0 dplyr_0.8.0.1 [33] purrr_0.3.2 readr_1.3.1 [35] tidyr_0.8.3 tibble_2.1.2 [37] ggplot2_3.1.1 tidyverse_1.2.1 [39] betareg_3.1-2 sigmoid_0.3.0 [41] shiny_1.3.2

loaded via a namespace (and not attached): [1] backports_1.1.4 plyr_1.8.4 lazyeval_0.2.2 [4] usethis_1.5.0 digest_0.6.19 htmltools_0.3.6 [7] viridis_0.5.1 fansi_0.4.0 magrittr_1.5 [10] memoise_1.1.0 remotes_2.0.4 modelr_0.1.4 [13] sandwich_2.5-1 prettyunits_1.0.2 colorspace_1.4-1 [16] rvest_0.3.3 ggrepel_0.8.1 haven_2.1.0 [19] xfun_0.6 callr_3.2.0 crayon_1.3.4 [22] jsonlite_1.6 zeallot_0.1.0 brew_1.0-6 [25] zoo_1.8-5 polyclip_1.10-0 gtable_0.3.0 [28] pkgbuild_1.0.3 Rook_1.1-1 miniUI_0.1.1.1 [31] Rcpp_1.0.1 viridisLite_0.3.0 xtable_1.8-4 [34] foreign_0.8-71 Formula_1.2-3 stats4_3.6.0 [37] htmlwidgets_1.3 httr_1.4.0 sourcetools_0.1.7 [40] RColorBrewer_1.1-2 modeltools_0.2-22 pkgconfig_2.0.2 [43] XML_3.98-1.19 flexmix_2.3-15 farver_1.1.0 [46] nnet_7.3-12 utf8_1.1.4 tidyselect_0.2.5 [49] rlang_0.3.4 later_0.8.0 munsell_0.5.0 [52] cellranger_1.1.0 tools_3.6.0 downloader_0.4 [55] cli_1.1.0 generics_0.0.2 devtools_2.0.2 [58] broom_0.5.2 evaluate_0.13 yaml_2.2.0 [61] fs_1.3.1 processx_3.3.1 knitr_1.22 [64] packrat_0.5.0 nlme_3.1-139 mime_0.7 [67] xml2_1.2.0 compiler_3.6.0 rstudioapi_0.10 [70] curl_3.3 rgexf_0.15.3 tweenr_1.0.1 [73] ps_1.3.0 desc_1.2.0 lattice_0.20-38 [76] psych_1.8.12 vctrs_0.1.0 pillar_1.4.1 [79] lmtest_0.9-37 data.table_1.12.2 httpuv_1.5.1 [82] R6_2.4.0 promises_1.0.1 gridExtra_2.3 [85] sessioninfo_1.1.1 MASS_7.3-51.4 assertthat_0.2.1 [88] pkgload_1.0.2 rprojroot_1.3-2 withr_2.1.2 [91] mnormt_1.5-5 parallel_3.6.0 hms_0.4.2 [94] influenceR_0.1.0 grid_3.6.0 rmarkdown_1.12 [97] ggforce_0.2.2 lubridate_1.7.4

On Wed, 17 Jul 2019 at 21:39, John (JP) Coene notifications@github.com wrote:

Interesting, just tried this second as I saw @stevepowell99 https://github.com/stevepowell99 message and still can't reproduce.

with_tippy(textInput("text", "Text"), tooltip = "TEXT")

Could you please post your sessionInfo and I'll investigate.

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/JohnCoene/tippy/issues/4?email_source=notifications&email_token=AAZAFO4EDMMBPA5633U5KQ3P757O3A5CNFSM4HHZB2K2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD2GQTCQ#issuecomment-512559498, or mute the thread https://github.com/notifications/unsubscribe-auth/AAZAFO5BWV6BYGSHUV5DSA3P757O3ANCNFSM4HHZB2KQ .

--


independent social researcher skype: stevepowell99 mobile: +44 75 1088 1300 pogol.net


visual tools for theories of change: theorymaker.info


earnaud commented 5 years ago

Hi, I also had the "with-tippy() not found" bug but installing from the github repo, unloading and reloading the tippy package made it. Thanks !

etiennebacher commented 4 years ago

I have the same error with the CRAN and GitHub versions. However, if I manually download your repo, place it in a new R Project, and build it inside RStudio, with_tippy() is here. I really don't know why there is this difference between the manual installation and devtools::install_github(), but I hope this helps.

JohnCoene commented 4 years ago

I'll take a look at this again, perhaps this time I find the issue. Apologies everyone.

etiennebacher commented 3 years ago

Turns out that I have now access to with_tippy() by installing the GitHub version. I don't know what changed but it now works. Do you plan on pushing this version to CRAN soon?

ocelhay commented 3 years ago

Being able to use the CRAN version and with_tippy() would be great!

JohnCoene commented 3 years ago

Submitted to cran

JohnCoene commented 3 years ago

CRAN has accepted the next version which fixes this. It should be available in the coming days. Feel free to re-open if this is not the case.