devtools

What is the most user-friendly way to test the reverse dependencies for a package?

邮差的信 提交于 2020-05-27 04:58:05
问题 Testing reverse dependencies is a pain and I find the available implementations buggy, e.g. when I run devtools::revdep_check() I see Reverse dependency checks for <MY PACKAGE> ========================================================================== Saving check results in `revdep/checks/` Saving install results in `revdep/install/` Computing reverse dependencies... Installing dependencies for <MY PACKAGE> to <TEMP DIR> Installing <MY PACKAGE> to <TEMP DIR> Error: Command failed (1) so I

What is the most user-friendly way to test the reverse dependencies for a package?

╄→尐↘猪︶ㄣ 提交于 2020-05-27 04:57:56
问题 Testing reverse dependencies is a pain and I find the available implementations buggy, e.g. when I run devtools::revdep_check() I see Reverse dependency checks for <MY PACKAGE> ========================================================================== Saving check results in `revdep/checks/` Saving install results in `revdep/install/` Computing reverse dependencies... Installing dependencies for <MY PACKAGE> to <TEMP DIR> Installing <MY PACKAGE> to <TEMP DIR> Error: Command failed (1) so I

How do i keep source files when using R's devtools library function 'install'

依然范特西╮ 提交于 2020-05-23 14:10:14
问题 I am trying to build an R package (DESeq2) from source so that I can debug it. I've installed all the dependencies required and I'm following Hillary Parker's instructions for creating R packages. I'm running this on CentOS 6.6 using R-3.4.2. I run : library("devtools") install("DESeq2", keep_source=TRUE) It installs it in the directory with all my other R libraries. When I look at the installed DESeq2 library it is missing all the DESeq2/R/*.R and DESeq2/src/*.cpp files. QUESTION : Where are

Unable to install a package package in R

三世轮回 提交于 2020-04-07 08:25:09
问题 I am using rstudio with an r version 3.6.2 . I already referred this post in forum but doesn't seem to help. The package can be found here I am trying to install aphrodite package but unfortunately it throws error as shown below. I get either of the below 2 errors Error: Failed to install 'Aphrodite' from GitHub: (converted from warning) unable to access index for repository https://OHDSI.github.io/drat/bin/windows/contrib/3.6: cannot open URL 'https://OHDSI.github.io/drat/bin/windows/contrib

'data' is not an exported object from 'namespace:my_package'

只谈情不闲聊 提交于 2020-03-18 11:27:12
问题 I'm writing a function that uses an external data as follow: First, it checks if the data is on the data / folder, if it is not, it creates the data / folder and then downloads the file from github; If the data is already on the data/ folder, it reads it, and perform the calculations. The question is, when I run: devtools::check() it returns: Error: 'data' is not an exported object from 'namespace:my_package' Should I manually put something on NAMESPACE ? An example: my_function <- function(x

Dynamic library not loading in R binary package build

£可爱£侵袭症+ 提交于 2020-02-20 10:33:23
问题 I am trying to build a package with compiled C code in R using 'RStudio' and 'devtools' in a Windows environment. Only one of the function uses the C code in src folder. The source package works fine. I can use all the functions. I am able to compile the C code using devtools::document() and the corresponding .dll and .o file also appears in the src folder. Then I can load the code using dev_tools::load_all or Ctrl+Shift+L and run all the functions. However when I am building and reloading

Compilation failed for package 'RMongo' on Windows

吃可爱长大的小学妹 提交于 2020-01-25 03:00:06
问题 I am having trouble trying to install RMongo version 0.1.0. My code is as follows: library(devtools) install_github("tc/RMongo") The system output that I'm getting is: Downloading GitHub repo tc/RMongo@master Installing RMongo "C:/PROGRA~1/R/R-32~1.1/bin/x64/R" --no-site-file --no-environ --no-save \ --no-restore CMD INSTALL \ "C:/XX/AppData/Local/Temp/RtmpSGqhcG/devtools23d44de847da/tc-RMongo-9b6d1b1" \ --library="C:/XX/Documents/R/win-library/3.2" --install-tests * installing *source*

Build and reload in RStudio generates 'Save File' error

天大地大妈咪最大 提交于 2020-01-24 03:36:32
问题 I'm working on an Rcpp-enabled R package as a project in RStudio (version 1.0.136, Ubuntu 16.04 64 bit), and have recently started getting an error after building the package with Tools > Build and Reload. The error dialogue box reads: Save File No such file or directory The error doesn't appear straight after building and reloading. Rather, it occurs some time later while making edits to files, seemingly at random, and not necessarily while trying to save. However, after closing the dialogue

How to generate files in a docker container for having the same owner as the host's user

拜拜、爱过 提交于 2020-01-23 16:27:09
问题 I use docker containers to get some development tasks done in my git repositories. The containers I use are built specifically for each project, that way each contributor only need docker CLI to get things done. The bad side is the container run as root, thus generated files are owned by root once the container stops, and that's bad.. I can't change the owner in the container before exiting because there isn't the required user in the container /etc/passwd file. I would create a user in the

“API rate limit exceeded” when trying to install local R package using devtools::install()

╄→гoц情女王★ 提交于 2020-01-10 05:03:25
问题 Package development beginner here! I'm trying to turn some code into a local R package for the very first time. I made a package using usethis::create_package() , added documentation using devtools::document() . Now, after playing around with it for a while, I ran into the following error when trying to install the newest version using devtools::install() : Error: HTTP error 403. API rate limit exceeded for [my IP]. (But here's the good news: Authenticated requests get a higher rate limit.