nanxstats / ggsci

🦄 Scientific journal and sci-fi themed color palettes for ggplot2
https://nanx.me/ggsci/
GNU General Public License v3.0
661 stars 71 forks source link

scale_color_cosmic() function didn't work #9

Closed Wellington9023 closed 4 years ago

Wellington9023 commented 4 years ago

Error in scale_color_cosmic("hallmarks_light") : could not find function "scale_color_cosmic"

nanxstats commented 4 years ago

It's not in the CRAN version yet. Try the development version:

remotes::install_github("nanxstats/ggsci")
Wellington9023 commented 4 years ago

Thanks for reply! I used this code showing Error

remotes::install_github("nanxstats/ggsci") Downloading GitHub repo nanxstats/ggsci@master Error in utils::download.file(url, path, method = method, quiet = quiet, : cannot open URL 'https://api.github.com/repos/nanxstats/ggsci/tarball/master'

and then I tried this,it seemed to work

options(download.file.method = "libcurl") devtools::install_github("nanxstats/ggsci")

nanxstats commented 4 years ago

Glad to see it resolved.

That seems to be a wget/network issue, linking a relevant issue here: https://github.com/r-lib/remotes/issues/130.