devtools

Unable to install Devtools package for R studio mounted on linux redhat server

久未见 提交于 2019-12-09 10:11:54
问题 I'm unable to install the devtools package in R Studio on a redhat linux server. These error messages showed up: ERROR: configuration failed for package ‘RCurl’ * removing ‘/home/xx/R/x86_64-redhat-linux-gnu-library/3.0/RCurl’ Warning in install.packages : installation of package ‘RCurl’ had non-zero exit status ERROR: dependency ‘RCurl’ is not available for package ‘httr’ * removing ‘/home/xx/R/x86_64-redhat-linux-gnu-library/3.0/httr’ Warning in install.packages : installation of package

How to use @inheritParams on single parameters when multiple parameters match?

痞子三分冷 提交于 2019-12-08 14:55:51
问题 I would like to document an R function and inherit individual parameter documentation from other functions when multiple parameter names match. For example, lets say I have the following 2 functions. #' Function 1. #' #' Description of function 1. #' #' @param x XYZ #' @param y ZYX #' @return Numeric fun1 <- function(x, y) {value <- 1} #' Function 2. #' #' Description of function 2. #' #' @param x ABC #' @param y CBA #' @return Numeric fun2 <- function(x, y) {value <- 2} I now want to create

Problems installing packages devtools and callr on Windows

微笑、不失礼 提交于 2019-12-08 11:13:01
问题 Installing package devtools I obtained the following message There are binary versions available but the source versions are later: binary source needs_compilation processx 3.3.1 3.4.0 TRUE callr 3.2.0 3.3.0 FALSE Moreover: * installing *source* package 'callr' ... ** package 'callr' successfully unpacked and MD5 sums checked ** using staged installation ** R ** inst ** byte-compile and prepare package for lazy loading Error in loadNamespace(j <- i[[1L]], c(lib.loc, .libPaths()), versionCheck

Could not find build tools necessary . Facing error with devtools

安稳与你 提交于 2019-12-07 14:54:29
问题 I am trying to install pacakage BTYDPlus (https://github.com/mplatzer/BTYDplus) When I enter this command devtools::install_github("mplatzer/BTYDplus", dependencies=TRUE) It prompts me to install Building R package from source requires installation of additional build tools. Do you want to install the additional tools now ? So, I went ahead and installed. I can see a folder RbuildTools in my C drive now. However find r_tools() #returns TRUE However when I try to install using Devtools , I get

base::assign(“.ptime”, proc.time(), pos = “CheckExEnv”) ERROR when using devtools::check

别说谁变了你拦得住时间么 提交于 2019-12-07 14:33:49
问题 I am doing the R CMD check for my package using devtools::check and I encountered the same ERROR (see bellow) discussed here. I tried to do what was suggested there: I added a tag of #'@export before the #'@example in my prep.R code, and I also added export(prep) in NAMESPACE . However I still get the same error. Does anyone knows how can I solve this? Any help will be greatly appreciated Ayala * checking R/sysdata.rda ... OK * checking examples ... ERROR Running examples in 'prepdat-Ex.R'

How to define which variables or functions from a package are exported

僤鯓⒐⒋嵵緔 提交于 2019-12-07 06:40:05
问题 My R package uses an internal variable x . If I load the package (I've only tried using devtools::load_all ), then x doesn't appear in the ls() list, but it does have a value. How can I avoid this? I'm fine with the user being able to access the variable with myPackage::x , but not simply x . 回答1: The load_all function has an export_all argument. From ?load_all If TRUE (the default), export all objects. If FALSE, export only the objects that are listed as exports in the NAMESPACE file. So,

Fail to build package when trying to install vignettes with install_github [R]

空扰寡人 提交于 2019-12-07 06:25:32
问题 By default when one is using install_github function from devtools package in R the vignettes of the installed package are not build. I've seen this questio with an answer which shows how to build vignettes if one desires to Building R package from github: how to disable building vignettes?. I wrote a package with such vignettes and but I recieve an error what installing directly from github like this: > devtools::install_github("MarcinKosinski/RTCGA") Downloading github repo MarcinKosinski

Error: “Could not find build tools necessary to build stringi” when trying devtools::install_github()

烈酒焚心 提交于 2019-12-06 09:12:32
问题 Trying devtools::install_github("Rexamine/stringi") and getting error: Could not find build tools necessary to build stringi I see several people have had this error but the solutions haven't worked for me. I reinstalled xcode because the command line tools seemed to be the problem for other people. Checked the paths for R and RStudio, I can open both fine (from the terminal as well). Don't think this is an Rtools issue but I can't figure out where the problem is. Has anyone had any luck with

When does “Start profiling and reload page” decide to stop the automatic recording?

风流意气都作罢 提交于 2019-12-06 07:50:03
问题 I use the Performance Timeline in Chrome DevTools quite a lot to capture performance recordings of my page. Most of the time I use the "Start profiling and reload page", which automatically starts and stops the recording. The question is: When does DevTools decide to stop the recording ? I've noticed that it always continues to record at least a few hundred ms past the "Load"-event and tries to figure out when the page has gone "mostly idle". But that's quite a fuzzy guess. I'd love to know

Imported packages do not auto-install

て烟熏妆下的殇ゞ 提交于 2019-12-06 06:11:18
问题 I have a private package stored locally (and version-controlled via SVN). To install the package, I am asking the user to SVN-update his/her package directory, then setwd() on the directory, and then devtools::install() . This package imports many CRAN packages, which are not stored locally. These imported packages are not auto-installing during the installation, which produces the error message Dependency package foo not available . The user must manually install install.packages('foo') ,