devtools

Store multiple objects in sysdata.rda: R-package development

你离开我真会死。 提交于 2019-12-21 05:00:12
问题 I've just stumbled on the possibility to store internal package data in /R/sysdata.rda . However, I don't get how I should store multiple objects? I can store one single object, but I would like to make many more available through sysdata.rda . I know it to be possible by looking at the Dichromats package, as shown on Hadley R packages website http://r-pkgs.had.co.nz/data.html. I've tried the code below. > devtools::use_data(data, data, internal = TRUE) Saving data, data as sysdata.rda to C:

R: source_gist not working

一个人想着一个人 提交于 2019-12-20 18:28:00
问题 I am trying to use source_gist from the devtools package but I am encountering an error: > library(devtools) > source_gist("524eade46135f6348140") Error in r_files[[which]] : invalid subscript type 'closure' Thanks for any advice. 回答1: Agree this is a bug, which I see you've submitted. A temporary workaround is to specify the filename option: devtools::source_gist("524eade46135f6348140", filename = "ggplot_smooth_func.R") 来源: https://stackoverflow.com/questions/38345894/r-source-gist-not

Why is Vue.js Chrome Devtools not detecting Vue.js?

喜欢而已 提交于 2019-12-20 11:16:12
问题 I have the following code with a simple working Vue.js application. But the vue.js devtools is not responding. It was working well a few days ago, now it's not working anymore what could possibly be going wrong? when I go to https://chrome.google.com/webstore/detail/vuejs-devtools/nhdogjmejiglipccpnnnanhbledajbpd, it says it is already added. <!doctype html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, user-scalable=no, initial-scale=1.0,

devtools/GitHub download error

雨燕双飞 提交于 2019-12-20 01:36:35
问题 As of today I can not use devtools to install a package from GitHub. I don't know if the error lies in: Me devtools GitHub I'm using install_github as follows and get the following error: library(devtools) install_github("reports", "trinker") ## > library(devtools) ## > install_github("reports", "trinker") ## Installing github repo(s) reports/master from trinker ## Installing reports.zip from https://github.com/trinker/reports/archive/master.zip ## Error in function (type, msg, asError = TRUE

Can't use Rcpp engine in R Markdown

微笑、不失礼 提交于 2019-12-19 17:46:20
问题 I tried to Knit HTML the following Rmd file: --- title: "Untitled" author: "Florian Privé" date: "12 septembre 2016" output: html_document --- ```{r fibCpp, engine='Rcpp'} #include <Rcpp.h> // [[Rcpp::export]] int fibonacci(const int x) { if (x == 0 || x == 1) return(x); return (fibonacci(x - 1)) + fibonacci(x - 2); } ``` I got the following error: Building shared library for Rcpp code chunk... Warning message: l'exécution de la commande 'make -f "C:/PROGRA~1/R/R-33~1.1/etc/x64/Makeconf" -f

devtools::install_github Error in function (type, msg, asError = TRUE) : <not set>

丶灬走出姿态 提交于 2019-12-18 12:30:25
问题 I'm trying to install a package via devtools::install_github for the first time l@np350v5c:~$ R --vanilla > library(devtools) Attaching package: ‘devtools’ The following objects are masked from ‘package:utils’: ?, help The following object is masked from ‘package:base’: system.file > search() [1] ".GlobalEnv" "package:devtools" "package:stats" [4] "package:graphics" "package:grDevices" "package:utils" [7] "package:datasets" "package:methods" "Autoloads" [10] "package:base" but, eg > install

devtools roxygen package creation and rd documentation

≯℡__Kan透↙ 提交于 2019-12-18 11:34:34
问题 I am new to roxygen and am struggling to see how to be able to use it to quickly create a new/custom package. I.e. I would like to know the minimum requirements are to make a package called package1 using devtools , roxygen2/3 so that I can run the commands require(package1) fun1(20) fun2(20) to generate 2000 and 4000 random normals respectively So lets take the simplest example. If I have two functions fun1 and fun2 fun1 <- function(x){ rnorm(100*x) } and fun2 <- function(y){ rnorm(200*y) }

devtools roxygen package creation and rd documentation

眉间皱痕 提交于 2019-12-18 11:34:33
问题 I am new to roxygen and am struggling to see how to be able to use it to quickly create a new/custom package. I.e. I would like to know the minimum requirements are to make a package called package1 using devtools , roxygen2/3 so that I can run the commands require(package1) fun1(20) fun2(20) to generate 2000 and 4000 random normals respectively So lets take the simplest example. If I have two functions fun1 and fun2 fun1 <- function(x){ rnorm(100*x) } and fun2 <- function(y){ rnorm(200*y) }

How to install R package from private repo using devtools install_github?

一曲冷凌霜 提交于 2019-12-17 18:27:44
问题 I am trying to install a sample package from my github repo: https://github.com/jpmarindiaz/samplepkg I can install it when the repo is public using any of the following commands through the R interpreter: install_github("jpmarindiaz/rdali") install_github("rdali",user="jpmarindiaz") install_github("jpmarindiaz/rdali",auth_user="jpmarindiaz") But when the git repository is private I get an Error: Installing github repo samplepkg/master from jpmarindiaz Downloading samplepkg.zip from https:/

devtools::install_github fails with CA cert error

ぃ、小莉子 提交于 2019-12-17 16:30:57
问题 When I try to call install_github, I get the following error (not just for this package, but for all github packages): > install_github('ramnathv/slidify') Downloading github repo ramnathv/slidify@master Error in curl::curl_fetch_memory(url, handle = handle) : Problem with the SSL CA cert (path? access rights?) But if I use RCurl directly to access github with ssl, I don't get any problem: > x <- getBinaryURL( url='https://github.com/ramnathv/slidify/archive/master.zip', followlocation=1L )