devtools

C++ function not available

匆匆过客 提交于 2019-12-06 01:58:17
问题 I have the following file cumsum_bounded.cpp #include <Rcpp.h> using namespace Rcpp; //' Cumulative sum. //' @param x numeric vector //' @param low lower bound //' @param high upper bound //' @param res bounded numeric vector //' @export //' @return bounded numeric vector // [[Rcpp::export]] NumericVector cumsum_bounded(NumericVector x, double low, double high) { NumericVector res(x.size()); double acc = 0; for (int i=0; i < x.size(); ++i) { acc += x[i]; if (acc < low) acc = low; else if (acc

Could not find build tools necessary . Facing error with devtools

纵然是瞬间 提交于 2019-12-06 00:21:53
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 the same error again. I also tried assigning the path of build tools as per some suggestions but

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

£可爱£侵袭症+ 提交于 2019-12-05 20:33:28
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' failed The error most likely occurred in: > base::assign(".ptime", proc.time(), pos = "CheckExEnv") > ##

Trouble installing R packages with devtools on Travis

我的梦境 提交于 2019-12-05 19:59:03
问题 Travis CI builds for the drake R package manual recently started failing: Downloading GitHub repo ropensci/drake@master Error: Could not find tools necessary to compile a package In addition: Warning message: In get0(oNam, envir = ns) : internal error -3 in R_decompress1 Execution halted The command "Rscript -e 'deps <- devtools::dev_package_deps(dependencies = NA);devtools::install_deps(dependencies = TRUE);if (!all(deps$package %in% installed.packages())) { message("missing: ", paste

iOS Devtools.Core Framework pbxcp missing in Xcode?

女生的网名这么多〃 提交于 2019-12-05 18:44:16
I downloaded the Doomclassic Source Code and wanted to have a look at it. First I wanted to compile it to see if it actually works. So I followed the instructions and copied the .wad files into the base folder, openend the project and hit compile. Aside from the over 300 warnings and the missing files (mostly Images, which I mostly fixed) I have a strange error during teh compile phase and google is no help at all. It says: /Users/tobias/Library/Developer/Xcode/DerivedData/Doom-egfadrxunamfwjdsdaylawcyppkc/Build/Intermediates/Doom.build/Debug-iphonesimulator/Doom.build/Script

data.table throws “object not found” error [duplicate]

别等时光非礼了梦想. 提交于 2019-12-05 12:32:38
问题 This question already has an answer here : R data.table breaks in exported functions (1 answer) Closed 5 years ago . I have a data.table: library(data.table) mydt <- data.table(index = 1:10) I am getting this to work when I try it in the global environment, but not when I am in the debugger or when I use it in a package test. The problem is that I can not subset it in the standard ways. Browse[2]> mydt[,index] Error in `[.data.frame`(x, i, j) : object 'index' not found Browse[2]> mydt[,list

Automatic loading of data from sysdata.rda in package

别等时光非礼了梦想. 提交于 2019-12-05 12:06:30
I have spent a lot of time searching for an answer to what is probably a very basic question, but I just can't find the solution to my issue. The closest that I found was this exchange from a few years ago. In that case, the issue was the location of the sysdata.rda file in the correct directory within the package. That is not my issue. I have some variables that store things like color palettes that I amusing inside a package. These variables are only used inside my functions so I storing them in R/sysdata.rda. However, when I load the packages, the variables are not loading into the package

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

丶灬走出姿态 提交于 2019-12-05 09:40:14
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/RTCGA@master Installing RTCGA '/usr/lib/R/bin/R' --vanilla CMD INSTALL \ '/tmp/RtmpCIboSY

JavaScript development addon for browsers

混江龙づ霸主 提交于 2019-12-05 04:10:48
问题 Is there an addon that assists JavaScript (client-side) web development in browsers other than Firefox, for which Firebug suffices? Especially something for Internet Explorer (version 7) and Opera (version 9) with which I'm currently experiencing issues. Information about development tools like Firebug, are welcome for any browser. 回答1: Firebug Lite? 回答2: If you are using IE8 - Press F12 and you will see the fantastic developer tool window. If you are using earlier versions IE Developer

How to export S3 method so it is available in namespace?

守給你的承諾、 提交于 2019-12-05 01:56:17
I am creating a package and for S3 methods I export them using ##' @method predict myclass ##' @export predict.myclass <- function(object,...) { } Now when I load the package, then predict works on object of the class myclass , but function predict.myclass is not exported. In the NAMESPACE I only get the entry S3method(predict,myclass) . So is there a way to export predict.myclass too, so that user will get the code of predict.myclass when he(she) writes predict.myclass in the console? My answer is "don't do that". The user can methods(predict); getAnywhere('predict.myclass') or mypackage::