benyamindsmith / starBliss

Create beautiful, print quality maps of the night sky in R
44 stars 2 forks source link

Error in element_line when running examples #8

Closed nelsonroque closed 10 months ago

nelsonroque commented 1 year ago

Hello,

I am so excited to work with starBliss (and mapBliss) - very exciting work @benyamindsmith !

In attempting to run the example of either green or black style, I am receiving the following error:

Error in element_line(color = majorGridCol, linewidth = 1) : unused argument (linewidth = 1)

Here is my output of sessionInfo() in case helpful: `

sessionInfo() R version 4.1.3 (2022-03-10) Platform: x86_64-apple-darwin17.0 (64-bit) Running under: macOS Catalina 10.15.7

Matrix products: default BLAS: /System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vecLib.framework/Versions/A/libBLAS.dylib LAPACK: /Library/Frameworks/R.framework/Versions/4.1/Resources/lib/libRlapack.dylib

locale: [1] en_US.UTF-8/en_US.UTF-8/en_US.UTF-8/C/en_US.UTF-8/en_US.UTF-8

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

other attached packages: [1] starBliss_0.1.0 ggplot2_3.3.5

loaded via a namespace (and not attached): [1] progress_1.2.2 tidyselect_1.1.2
[3] remotes_2.4.2 purrr_0.3.4
[5] sf_1.0-9 colorspace_2.0-3
[7] vctrs_0.4.1 generics_0.1.2
[9] testthat_3.1.3 usethis_2.1.5
[11] s2_1.1.2 utf8_1.2.2
[13] rlang_1.0.2 pkgbuild_1.3.1
[15] e1071_1.7-13 pillar_1.7.0
[17] glue_1.6.2 withr_2.5.0
[19] DBI_1.1.3 wk_0.7.1
[21] sessioninfo_1.2.2 lifecycle_1.0.1
[23] munsell_0.5.0 gtable_0.3.0
[25] devtools_2.4.3 memoise_2.0.1
[27] callr_3.7.0 fastmap_1.1.0
[29] ps_1.6.0 class_7.3-20
[31] curl_4.3.2 fansi_1.0.2
[33] Rcpp_1.0.8.3 KernSmooth_2.23-20 [35] scales_1.1.1 classInt_0.4-8
[37] cachem_1.0.6 desc_1.4.1
[39] pkgload_1.2.4 jsonlite_1.8.0
[41] fs_1.5.2 brio_1.1.3
[43] hms_1.1.1 tidygeocoder_1.0.5 [45] processx_3.5.2 dplyr_1.0.8
[47] grid_4.1.3 rprojroot_2.0.2
[49] cli_3.2.0 tools_4.1.3
[51] magrittr_2.0.2 proxy_0.4-27
[53] tibble_3.1.6 crayon_1.5.0
[55] pkgconfig_2.0.3 ellipsis_0.3.2
[57] prettyunits_1.1.1 lubridate_1.8.0
[59] httr_1.4.2 assertthat_0.2.1
[61] rstudioapi_0.13 R6_2.5.1
[63] units_0.8-1 compiler_4.1.3 ` I appreciate your time and help!

benyamindsmith commented 1 year ago

@nelsonroque Thank you for taking the time to check out the packages! Its always flattering to see people checking out my work!

As far your issue is concerned - starBliss uses ggplot2 version 3.4.0 so I would recommend updating ggplot2 by reinstalling.

install.packages("ggplot2")

Let me know if that fixes things for you!

benyamindsmith commented 10 months ago

@nelsonroque do you still have an issue with this? Otherwise I will close this issue soon.