devtools

Package installation failed when trying to install from GitHub

混江龙づ霸主 提交于 2019-12-12 14:24:45
问题 I am trying to run the following command in RStudio (version 3.1.0 on Windows 7 64-bit): devtools::install_github("data.table", "Rdatatable") I get the following output: Installing github repo data.table/master from Rdatatable Downloading master.zip from https://github.com/Rdatatable/data.table/archive/master.zip Installing package from C:\Users\cle1394\AppData\Local\Temp\Rtmpcrtx8Y/master.zip Installing data.table "C:/PROGRA~1/R/R-31~1.0/bin/x64/R" --vanilla CMD build \ "C:\Users\cle1394

R package that delivers executables residing in /inst

不羁的心 提交于 2019-12-12 05:03:52
问题 I would like to create an R package that relies on executables that I put into the /inst folder. However, whatever I put in /inst loses the execution bit after the package is installed, hence the binaries become non-executable due to the missing bit. Is there a way to preserve the file mode for files in /inst or these execution bits need to be added post installation? If so, anyone knows how? Appreciate any inputs 来源: https://stackoverflow.com/questions/47304933/r-package-that-delivers

Why do I need to run find_rtools() before has_devel() = TRUE?

风格不统一 提交于 2019-12-12 02:27:52
问题 I try to follow the guide in http://adv-r.had.co.nz/Rcpp.html to understand Rcpp but I always need to run devtools::find_rtools() before any Rcpp function works: If I do library(devtools) library(Rcpp) has_devel() # Error: Command failed(1) # Example from http://adv-r.had.co.nz/Rcpp.html add <- cppFunction('int add(int x, int y, int z) { int sum = x + y + z; return sum; }') I get an error and Rstudio prompts me to install additional build tools (but nothing happens when I say yes). It looks

R not recognizing GSL library undefined references

南楼画角 提交于 2019-12-11 19:51:36
问题 I am installing a package from github in R (link here: https://github.com/aliceyiwang/mvabund), using devtools. I have installed Rtools, using the instructions for another package (here: https://cran.r-project.org/web/packages/dynr/vignettes/InstallationForUsers.pdf) and all the checks there indicate that GSL and RTools are installed properly. I've set the Windows system environment variables LIB_GSL (as "C:/R/local323" ) and PATHS (as "C:/RTools/bin/", "C:/RTools/mingw_64/bin", "C:/R/R-3.5.1

DevTools in vue.js

人走茶凉 提交于 2019-12-11 17:17:38
问题 I am using vue.js inside Laravel 5.5.33 (not SPA). I am getting below error. How can I enable DevTools? 回答1: Be sure you have this setting in your app.js file Vue.config.devtools = true If you are using mix, check the dist of vue in webpack.mix, be sure you don't use min version mix.js('resources/js/app.js', 'public/js') .sass('resources/sass/app.scss', 'public/css') .webpackConfig({ resolve: { alias: { 'vue$': 'vue/dist/vue.js' } } }); Run your npm in dev npm run watch WARNING If you refresh

R package: Adding a vignette causes 'undefined exports'

左心房为你撑大大i 提交于 2019-12-11 15:23:50
问题 I wrote an internal package and when I add a vignette, it does not pass devtools:check() anymore. I added the vignette with devtools::use_vignette("my-vignette") . Even if I do not change anything about the vignette template, running devtools::check() yields: ==> devtools::check() Updating DataReportR documentation Loading DataReportR Setting env vars -------------------------------------------------------------- CFLAGS : -Wall -pedantic CXXFLAGS: -Wall -pedantic Building DataReportR --------

R - Importing 'xlsx' package to my own package doesn't work

最后都变了- 提交于 2019-12-11 14:30:00
问题 I am creating my own package. I am using a lot of existing packages in it and they work. I am using the same procedure for the xlsx package but it doesn't work. I have xlsx in Imports: in my DESCRIPTION file. I have @import xlsx in my respective .R file. I also tried @importFrom write.xlsx for a particular function with the same result. I am using libraries devtools and roxygen2 for creating the package. My new package is build, but if I proceed Check , an error occurs: Installation failed.

What does bash in the devtools package do?

我是研究僧i 提交于 2019-12-11 12:57:52
问题 In response to a previous question, Alternatives to system() in R for calling sed, rsync, ssh etc.: Do functions exist, should I write my own, or am I missing the point?, hadley's answer indicated that when faced with a similar problem, he had used a function like: bash <- function() system("bash") I found the original in his devtools package; implemented in devtools/R/bash.R: #' Open bash shell in package directory. #' #' @param pkg package description, can be path or package name. See #'

### ** Examples … Error: could not find function building packages in R

老子叫甜甜 提交于 2019-12-11 08:55:52
问题 I have created a package named test and I have a function named lad inside it. When I build it and after check it with cran=TRUE , I receive the following error. Any idea what's going wrong? * checking examples ... ERROR Running examples in 'test-Ex.R' failed The error most likely occurred in: > base::assign(".ptime", proc.time(), pos = "CheckExEnv") > ### Name: lad > ### Title: LAD > ### Aliases: lad > > ### ** Examples > > lad(y = "farm", x = "land", data="http://pages.stat.wisc.edu/

Unable to install devtools in R v3.4.3 in Fedora 27 due to curl compilation failed

假装没事ソ 提交于 2019-12-11 08:53:54
问题 I cannot install this R package due to compile errors. I try install.packages("devtools") and receive /usr/bin/ld: skipping incompatible /usr/lib/libcurl.so when searching for -lcurl /usr/bin/ld: skipping incompatible /usr/lib/gcc/x86_64-redhat-linux/7/../../../libcurl.so when searching for -lcurl /usr/bin/ld: skipping incompatible //lib/libcurl.so when searching for -lcurl /usr/bin/ld: skipping incompatible //usr/lib/libcurl.so when searching for -lcurl /usr/bin/ld: cannot find -lcurl