italocegatta / fipe Goto Github PK
View Code? Open in Web Editor NEWAccess to Fipe's average prices of vehicles in Brazil
Home Page: https://italocegatta.github.io/fipe/
License: Other
Access to Fipe's average prices of vehicles in Brazil
Home Page: https://italocegatta.github.io/fipe/
License: Other
Hi.
This is a friendly reminder that plan(multiprocess)
of the future package is deprecated since future 1.20.0 (2020-11-03). It will eventually become defunct and removed. The background for this can be found in HenrikBengtsson/future#420.
Your fipe package relies on multiprocess
, cf. https://github.com/italocegatta/fipe/search?q=multiprocess.
Please migrate your code to the platform-independent plan(multisession)
or the Linux/macOS-specific plan(multicore)
. If you want to emulate what multiprocess
does, you can do something like:
if (parallelly::supportsMulticore()) {
oplan <- plan(multicore)
} else {
oplan <- plan(multisession)
}
on.exit(plan(oplan))
BTW, if you don't already do so, please make sure to undo any plan()
you set in your code, as illustrated by the above example. This is needed to guarantee that calling your code won't override settings that the user has set previously. You can read about this in https://future.futureverse.org/reference/plan.html#for-package-developers.
Thank you,
Henrik
(maintainer of the future package)
Hi, I've been using your package for while, but it suddenly stopped working, I tried in many computers and got the same error:
fipe_vehicle(model = "PRISMA", year = 2018)
Erro: lexical error: invalid char in json text.
The resource you are looking fo
(right here) ------^
Could you help me?
Thanks
library(fipe)
library(ggplot2)
library(dplyr)
bmw_x6 <- fipe_vehicle(
model = "x6 ",
make = "bmw",
year = c(0, 2017:2015),
date = seq.Date(as.Date("2013-01-01"), as.Date("2017-12-01"), by = "4 months")
)
bmw_x6
Error in UseMethod("rename_") :
no applicable method for 'rename_' applied to an object of class "list"
In addition: Warning message:
All formats failed to parse. No formats found.
My session info:
R version 3.6.1 (2019-07-05)
Platform: x86_64-pc-linux-gnu (64-bit)
Running under: Linux Mint 19.2
Matrix products: default
BLAS: /usr/lib/x86_64-linux-gnu/atlas/libblas.so.3.10.3
LAPACK: /usr/lib/x86_64-linux-gnu/atlas/liblapack.so.3.10.3
locale:
[1] LC_CTYPE=en_US.UTF-8 LC_NUMERIC=C LC_TIME=en_US.UTF-8 LC_COLLATE=en_US.UTF-8
[5] LC_MONETARY=pt_BR.UTF-8 LC_MESSAGES=en_US.UTF-8 LC_PAPER=pt_BR.UTF-8 LC_NAME=C
[9] LC_ADDRESS=C LC_TELEPHONE=C LC_MEASUREMENT=pt_BR.UTF-8 LC_IDENTIFICATION=C
attached base packages:
[1] stats graphics grDevices utils datasets methods base
other attached packages:
[1] jsonlite_1.6 dplyr_0.8.3 ggplot2_3.2.1 fipe_0.0.1
loaded via a namespace (and not attached):
[1] Rcpp_1.0.2 rstudioapi_0.10 magrittr_1.5 tidyselect_0.2.5 munsell_0.5.0 colorspace_1.4-1
[7] R6_2.4.0 rlang_0.4.0 httr_1.4.1 stringr_1.4.0 tools_3.6.1 grid_3.6.1
[13] gtable_0.3.0 withr_2.1.2 lazyeval_0.2.2 assertthat_0.2.1 tibble_2.1.3 crayon_1.3.4
[19] purrr_0.3.2 curl_4.0 glue_1.3.1 stringi_1.4.3 compiler_3.6.1 pillar_1.4.2
[25] scales_1.0.0 lubridate_1.7.4 pkgconfig_2.0.2
Error in dplyr::mutate()
:
ℹ In argument: year_code = purrr::pmap(...)
.
Caused by error in purrr::pmap()
:
ℹ In index: 12.
Caused by error:
! lexical error: invalid char in json text.
<html lang="en-U
(right here) ------^
Run rlang::last_trace()
to see where the error occurred.
Can anyone help me with this error?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.