![]() ![]() ifelse(require(dplyr)=T, "Cargado", "No cargado") # Loading required package: dplyr # ![]() Require () está diseñado para ser utilizado dentro de funciones, ya que da un mensaje de advertencia y devuelve un valor lógico decir, FALSE si el paquete solicitado no se encuentra y TRUE si el paquete está cargado. ![]() # logical.return = TRUE, : there is no package called 'abcd' require(abcd) # Loading required package: abcd # Warning in library(package, lib.loc = lib.loc, character.only = TRUE, library(abcd)Įrror in library(abcd) : there is no package called ‘abcd’ Por defecto, library() devuelve un error si el paquete solicitado no existe. La principal diferencia entre estas funciones es: Una vez que hayas instalado un paquete debes cargarlo para poder usas sus funciones o información.Īmbas funciones cumplen la función de carga, pero ¿en que se diferencian? Package ‘tm’ successfully unpacked and MD5 sums checked Package ‘XML’ successfully unpacked and MD5 sums checked Package ‘SnowballC’ successfully unpacked and MD5 sums checked Package ‘filehash’ successfully unpacked and MD5 sums checked Package ‘slam’ successfully unpacked and MD5 sums checked Package ‘NLP’ successfully unpacked and MD5 sums checked ![]() Package ‘ineq’ successfully unpacked and MD5 sums checkedĭependencies ‘Rcampdf’, ‘Rgraphviz’, ‘Rpoppler’, ‘tm.lexicon.GeneralInquirer’ are not availableĪlso installing the dependencies �NLP�, �slam�, �filehash�, �SnowballC�, �XML�Ĭontent type 'application/zip' length 293996 bytes (287 KB)Ĭontent type 'application/zip' length 118237 bytes (115 KB)Ĭontent type 'application/zip' length 275509 bytes (269 KB)Ĭontent type 'application/zip' length 3082209 bytes (2.9 MB)Ĭontent type 'application/zip' length 4323674 bytes (4.1 MB)Ĭontent type 'application/zip' length 1274636 bytes (1.2 MB) Installing package into �C:/Users/crbdl/Documents/R/win-library/3.4�Ĭontent type 'application/zip' length 67130 bytes (65 KB) install.packages("tm", dependencies = T, destdir = "C:/temp") Lo cual también aplica para descargar un paquete con todas sus dependencias. install.packages("ineq", destdir = "C:/temp") Si por alguna razón necesitamos los paquetes en zip los guardamos con el argumento destdir. Instalación normal con todas sus dependencias install.packages("dplyr", dependencies = T) Instalación normal install.packages("xts") Te presentamos varios tips a fin de acelerar el proceso de instalación y carga de tus librerías. By contributing to this project, you agree to abide by its terms.Si usas R, sabes que una de sus grandes ventajas es la ampliación de sus funcionalidades mediantes paquetes o librerías. Please note that the httr project is released with a Contributor Code of Conduct. To get the current development version from github: # install.packages("devtools")ĭevtools::install_github("r-lib/httr") Code of Conduct To get the current released version from CRAN: install.packages("httr") Thanks! httr is inspired by http libraries in other languages, such as Resty, Requests and httparty. Httr wouldn't be possible without the hard work of the authors of curl and libcurl. OAuth credentials are automatically cached within a project. Withings and yahoo) and four for 2.0 (facebook, github, google, linkedin). The demo directory has eight OAuth demos: four for 1.0 (twitter, vimeo, Support for OAuth 1.0 and 2.0 with oauth1.0_token() and oauth2.0_token(). Verbose(), timeout(), content_type(), accept(), progress(). Set_cookies(), add_headers(), authenticate(), use_proxy(), You can convert http errors into R errors with stop_for_status().Ĭonfig functions make it easier to modify the request in common ways: ( as = "parsed"), currently for html, xml, json, png and jpeg. "raw"), a character vector ( as = "text"), or parsed into an R object Response content is available with content() as a raw vector ( as = Headers and body, along with other useful information. Requests return a standard reponse object that captures the http status line, The aim of httr is to provide a wrapper for the curl package, customised to the demands of modern web APIs.įunctions for the most important http verbs: GET(), HEAD(), PATCH(),Īutomatic connection sharing across requests to the same website (byĭefault, curl handles are managed automatically), cookies are maintainedĪcross requests, and a up-to-date root-level SSL certificate store is used. Httr is superseded: only changes necessary to keep it on CRAN will be made. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |