rich-iannone / splitr

Use the HYSPLIT model from inside R and do more with it
Other
141 stars 60 forks source link

hysplit_trajectory error: unused arguments #13

Closed VLionel closed 5 years ago

VLionel commented 7 years ago

Hi Rich,

I am following your tutorial (http://rpubs.com/rich_i/splitr-wind-traj) and while trying to run your first example, I have the following error:

Error in hysplit_trajectory(start_lat_deg = 49.263, start_long_deg = -123.25,  : 
  unused arguments (start_lat_deg = 49.263, start_long_deg = -123.25, start_height_m_AGL = 50, simulation_duration_h = 336, backtrajectory = TRUE, run_type = "day", run_day = "2015-07-01", daily_hours_to_start = 0, return_met_along_traj = TRUE)

My sessionInfo() is:

R version 3.4.0 (2017-04-21)
Platform: x86_64-suse-linux-gnu (64-bit)
Running under: openSUSE Leap 42.2

Matrix products: default
BLAS: /usr/lib64/R/lib/libRblas.so
LAPACK: /usr/lib64/R/lib/libRlapack.so

locale:
 [1] LC_CTYPE=en_US.UTF-8       LC_NUMERIC=C               LC_TIME=en_US.UTF-8       
 [4] LC_COLLATE=en_US.UTF-8     LC_MONETARY=en_US.UTF-8    LC_MESSAGES=en_US.UTF-8   
 [7] LC_PAPER=en_US.UTF-8       LC_NAME=C                  LC_ADDRESS=C              
[10] LC_TELEPHONE=C             LC_MEASUREMENT=en_US.UTF-8 LC_IDENTIFICATION=C       

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

other attached packages:
[1] SplitR_0.4

loaded via a namespace (and not attached):
 [1] Rcpp_0.12.11      compiler_3.4.0    plyr_1.8.4        bitops_1.0-6      tools_3.4.0      
 [6] digest_0.6.12     lubridate_1.6.0   tibble_1.3.3      gtable_0.2.0      lattice_0.20-35  
[11] png_0.1-7         rlang_0.1.1       shiny_1.0.3       mapproj_1.2-5     crosstalk_1.0.0  
[16] proto_1.0.0       dplyr_0.7.0       downloader_0.4    stringr_1.2.0     RgoogleMaps_1.4.1
[21] htmlwidgets_0.8   maps_3.2.0        leaflet_1.1.0     grid_3.4.0        glue_1.1.1       
[26] R6_2.2.2          jpeg_0.1-8        sp_1.2-4          ggmap_2.6.1       ggplot2_2.2.1    
[31] reshape2_1.4.2    magrittr_1.5      scales_0.4.1      htmltools_0.3.6   assertthat_0.2.0 
[36] mime_0.5          geosphere_1.5-5   colorspace_1.2-4  xtable_1.8-2      httpuv_1.3.3     
[41] stringi_1.0-1     RCurl_1.95-4.8    lazyeval_0.2.0    munsell_0.4.2     rjson_0.2.15    

Please, could you provide some guidance to have SplitR working as in your tutorial?

Best regards, Viny

rich-iannone commented 5 years ago

Right now, the API has changed enough that this tutorial now shouldn’t work as is. I’ll eventually make a vignette that’s a Getting Started guide. For now, the README is the best source for working examples.