Closed benmarwick closed 6 years ago
I was working through paper.md until I got to totalEmission:
totalEmission
TOTAL <- totalEmission(veiculos,EF,pol = c("CO"),verbose = T) Error: $ operator is invalid for atomic vectors 5. as.character.units(structure(1127549.32468524, units = structure(list( numerator = "t", denominator = "year"), .Names = c("numerator", "denominator"), class = "symbolic_units"), class = "units")) 4. as.character(structure(1127549.32468524, units = structure(list( numerator = "t", denominator = "year"), .Names = c("numerator", "denominator"), class = "symbolic_units"), class = "units")) 3. paste("Total of", pol[i], ":", sum(total_t_y), units::deparse_unit(total_t_y)) 2. print(paste("Total of", pol[i], ":", sum(total_t_y), units::deparse_unit(total_t_y))) at totalEmission.R#62 1. totalEmission(veiculos, EF, pol = c("CO"), verbose = T)
> sessionInfo() R version 3.4.1 (2017-06-30) Platform: x86_64-pc-linux-gnu (64-bit) Running under: Debian GNU/Linux 9 (stretch) Matrix products: default BLAS/LAPACK: /usr/lib/libopenblasp-r0.2.19.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=C [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] EmissV_0.664.5 loaded via a namespace (and not attached): [1] Rcpp_0.12.17 raster_2.5-8 tensor_1.5 magrittr_1.5 [5] maptools_0.9-2 spatstat.utils_1.7-0 units_0.5-1 spatstat_1.52-1 [9] lattice_0.20-35 udunits2_0.13 tools_3.4.1 grid_3.4.1 [13] data.table_1.10.4 nlme_3.1-131 mgcv_1.8-19 DBI_0.7 [17] deldir_0.1-14 abind_1.4-5 goftest_1.1-1 sf_0.5-4 [21] Matrix_1.2-11 rpart_4.1-11 ncdf4_1.16 polyclip_1.6-1 [25] sp_1.2-5 compiler_3.4.1 foreign_0.8-69
I guess I am missing a Linux library here, I just noticed that are bunch are required in the docs at https://atmoschem.github.io/EmissV/index.html
I do not have this problem with this function on Windows.
I was working through paper.md until I got to
totalEmission
: