devtools

Cannot install devtools package after upgrading R

故事扮演 提交于 2019-12-30 09:56:10
问题 I have just upgraded to R 3.2.1, and can no longer install the devtools package. I get the following output: install.packages('devtools') trying URL 'http://cran.ma.imperial.ac.uk/bin/macosx/mavericks/contrib/3.2/devtools_1.8.0.tgz' Content type 'application/x-gzip' length 324861 bytes (317 KB) ================================================== downloaded 317 KB The downloaded binary packages are in /var/folders/zd/112dtz1x3575n4z10cm7nflw0000gn/T//RtmpzsBSdp/downloaded_packages Load library:

Install Rtools on R version 3.0.2

 ̄綄美尐妖づ 提交于 2019-12-28 06:31:26
问题 I've installed devtools for R, but when I call the library with: library(devtools) I get the following output: WARNING: Rtools is required to build R packages, but is not currently installed. Please download and install Rtools 3.1 from http://cran.r-project.org/bin/windows/Rtools/ and then run find_rtools(). So I executed the following code: install.packages("Rtools", repos = "http://cran.r-project.org/bin/windows/Rtools/") And I get the following output: Installing package into ‘C:~

Install Rtools on R version 3.0.2

梦想的初衷 提交于 2019-12-28 06:31:25
问题 I've installed devtools for R, but when I call the library with: library(devtools) I get the following output: WARNING: Rtools is required to build R packages, but is not currently installed. Please download and install Rtools 3.1 from http://cran.r-project.org/bin/windows/Rtools/ and then run find_rtools(). So I executed the following code: install.packages("Rtools", repos = "http://cran.r-project.org/bin/windows/Rtools/") And I get the following output: Installing package into ‘C:~

RNeo4j Installation Hanging, not Completing

和自甴很熟 提交于 2019-12-25 15:51:33
问题 I've tried installing RNeo4j package over and over, with no success - it keeps hanging, never finishing! I tried installing the packages in RStudio (with devtools::install_github("nicolewhite/RNeo4j") ), and even the base R, just to be sure. I updated my devtools to the latest, and tried again. Same thing. It would just get to ' Installing other packages curl, httr, R6, stringi ' and hang there. To confirm this wasn't an internet connection issue, I manually installed those listed packages (

R CMD check / devtools::test() and the current working directory

对着背影说爱祢 提交于 2019-12-25 07:01:04
问题 I am working on a R package that has some functions that I want to test (locally) on data that I can't distribute, because the data source is proprietary. I have a folder ( paid_projections ) where I'm keeping those files. This caused some initial difficulties when running devtools::test() and R CMD check, I think because of subtle differences in the working directory that those utilities seen. I've solved this problem by having my tests make some ad-hoc fixes to the path: spec_file <- file

Roxygen error “Skipping invalid path”

[亡魂溺海] 提交于 2019-12-24 02:23:24
问题 The output from running devtools::document(). I have no idea how to fix this and the roxygen documentation is not great at helping figure error messages out. Any ideas on how to get rid of this so my functions can be documented? Updating NEONExclusionZones documentation Loading NEONExclusionZones First time using roxygen2 4.0. Upgrading automatically... Writing NAMESPACE Skipping invalid path: 1CalcMosqImpact-TITLE.Rd Skipping invalid path: 1IstotopicChange-TITLE.Rd Skipping invalid path:

How to make devtools::test() consider package dependencies

喜夏-厌秋 提交于 2019-12-24 02:23:14
问题 Actual question Seems like devtools::test() does not make sure that package dependencies as stated in a package's DESCRIPTION file are loaded prior to running the unit tests. How can I change that? Details I'm writing a package ( B ) that imports another one of my packages ( A ). When I try to run my unit tests via devtools::test() , or, to be more precise via the shortcut SHFT + CRTL + T in RStudio, certain tests fail as the imported package seems to be disregarded/not loaded and thus a

R Package checking package dependencies ERROR in Travis-ci

情到浓时终转凉″ 提交于 2019-12-24 01:56:19
问题 My package passes local tests with devtools::check(), but fails to build with Travis (https://travis-ci.org/mjockers/syuzhet). Travis reports a "checking package dependencies ... ERROR" because the openNLP Package is required but not available. What is the trick to making the package available to Travis? Package is here: https://github.com/mjockers/syuzhet 回答1: I needed to update my .travis.yml file to load java, which the openNLP package requires. I updated .travis.yml by adding language:

R Package checking package dependencies ERROR in Travis-ci

拥有回忆 提交于 2019-12-24 01:56:05
问题 My package passes local tests with devtools::check(), but fails to build with Travis (https://travis-ci.org/mjockers/syuzhet). Travis reports a "checking package dependencies ... ERROR" because the openNLP Package is required but not available. What is the trick to making the package available to Travis? Package is here: https://github.com/mjockers/syuzhet 回答1: I needed to update my .travis.yml file to load java, which the openNLP package requires. I updated .travis.yml by adding language:

Cannot install my created packages

你说的曾经没有我的故事 提交于 2019-12-24 00:37:18
问题 I've been writing a lot of code for my personal use and finally reached a point where I realised I should really be including this all in a package which I can load in instead of copy and pasting it in each time. I followed the following tutorial for the creation of a basic package. https://hilaryparker.com/2014/04/29/writing-an-r-package-from-scratch/ As far as I can tell everything went well with the actual creation element. Here are screenshots of the result: The cats folder: The /cats/R