JohnCoene / coronavirus

🦠 Novel Coronavirus (COVID-19) Tracker
https://coronavirus.john-coene.com/
Other
320 stars 78 forks source link

Package installation issue #6

Closed liuliuball45 closed 4 years ago

liuliuball45 commented 4 years ago

I am trying to install the package through R studio.

I used the command below and got error message about encoding....wondering is there anything i need to do with my R environment setup?? Thanks if you can help.

remotes::install_github("JohnCoene/coronavirus") Downloading GitHub repo JohnCoene/coronavirus@master √ checking for file 'C:\Users\liuli\AppData\Local\Temp\Rtmp8c7Ka9\remotes29e429787b42\JohnCoene-coronavirus-2bad348/DESCRIPTION' (572ms)

  • preparing 'coronavirus': √ checking DESCRIPTION meta-information ...
  • checking for LF line-endings in source and make files and shell scripts
  • checking for empty or unneeded directories
  • looking to see if a 'data/datalist' file should be added
  • building 'coronavirus_0.0.3.tar.gz'

Installing package into ‘C:/Users/liuli/Documents/R/win-library/3.5’ (as ‘lib’ is unspecified)

JoeFernando commented 4 years ago

same issue for me!

sessionInfo() R version 3.6.1 (2019-07-05) Platform: x86_64-w64-mingw32/x64 (64-bit) Running under: Windows 10 x64 (build 18363)

Matrix products: default

locale: [1] LC_COLLATE=English_Australia.1252 LC_CTYPE=English_Australia.1252 LC_MONETARY=English_Australia.1252 [4] LC_NUMERIC=C LC_TIME=English_Australia.1252

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

loaded via a namespace (and not attached): [1] ps_1.3.0 prettyunits_1.0.2 withr_2.1.2.9000 crayon_1.3.4 rprojroot_1.3-2
[6] assertthat_0.2.1 R6_2.4.0 backports_1.1.4 magrittr_1.5 cli_1.1.0
[11] curl_4.2 remotes_2.0.2 rstudioapi_0.10 callr_3.2.0 tools_3.6.1
[16] compiler_3.6.1 processx_3.3.1 pkgbuild_1.0.3

JohnCoene commented 4 years ago

Thank you for reporting this!

Yes indeed, probably the encoding due to chinese characters. I have moved that to datasets so it passes all checks, I have tried myself, removing package and reinstalling from github and worked fine. Let me know.

remotes::install_github("JohnCoene/coronavirus")
JoeFernando commented 4 years ago

still no luck. It installs but no luck thereafter:

library(coronavirus) > > virus <- crawl_coronavirus() i Crawling data from John Hopkins Error in loadNamespace(name) : there is no package called ‘curl’ > run_app(virus) Error in with_golem_options(app = shinyApp(ui = app_ui, server = app_server), : object 'virus' not found

JohnCoene commented 4 years ago

Re there is no package called ‘curl’, did you try to install the missing package curl?

install.packages("curl")
JoeFernando commented 4 years ago

thanks....the crawl works. App failed:

run_app(virus)

This is what I see in the console

Listening on http://127.0.0.1:5373 Warning: Error in tag: argument is missing, with no default 73: tag 72: shiny::tags$div 70: f7Col 46: ui

Error in the app when it opened: ERROR: argument is missing, with no default

JoeFernando commented 4 years ago
JohnCoene commented 4 years ago

Thank you very much for your patience Joseph, it seem it is because you're on the previous version of shiny 1.3.0. I have added this to the DESCRIPTION. Reinstall the package should update shiny and subsequently work.

remotes::install_github("JohnCoene/coronavirus")

Sorry again, let me know if this works.

JoeFernando commented 4 years ago

it worked!!! Thanks John.

JohnCoene commented 4 years ago

Not at all, thanks to you for all your patience and reporting this!

cdriveraus commented 4 years ago

I am getting a similar issue, presumably due to character set: Error : (converted from warning) C:/Users/Driver/AppData/Local/Temp/RtmpI9Mnbw/R.INSTALL28a835e031ba/coronavirus/man/api.Rd:22: unknown macro '\Â'

JohnCoene commented 4 years ago

Sorry encoding issue, could please try again? and let me know.

cdriveraus commented 4 years ago

Yep no more warnings, fixed.

JohnCoene commented 4 years ago

Thank you for reporting this.