r-package

Export error on overwriting primitives with S3 in R package

谁说我不能喝 提交于 2021-01-27 12:21:22
问题 I'm trying to create a S3 method in my package called dimnames . This is a primitive in R, but there should be an S3 in my package with the same name. I've got the following file dimnames.r #' S3 overwriting primitive #' #' @param x object #' @export dimnames = function(x) { UseMethod("dimnames") } #' title #' #' @export dimnames.data.frame = function(x) { dimnames.default(x) } #' title #' #' @export dimnames.list = function(x) { lapply(x, dimnames) } #' title #' #' @export dimnames.default =

Export error on overwriting primitives with S3 in R package

一世执手 提交于 2021-01-27 11:54:23
问题 I'm trying to create a S3 method in my package called dimnames . This is a primitive in R, but there should be an S3 in my package with the same name. I've got the following file dimnames.r #' S3 overwriting primitive #' #' @param x object #' @export dimnames = function(x) { UseMethod("dimnames") } #' title #' #' @export dimnames.data.frame = function(x) { dimnames.default(x) } #' title #' #' @export dimnames.list = function(x) { lapply(x, dimnames) } #' title #' #' @export dimnames.default =

Error in dyn.load(dllfile) : unable to load shared object | Expected in: flat namespace

試著忘記壹切 提交于 2021-01-27 05:47:31
问题 I am new to R package development. I am developing a package (bartpkg) that has in its src/ folder one (prime) cpp file and some helper cpp ( X.Cpp , Y.Cpp ) and one c file ( Z.C ) and their header files ( X.h , Y.h and Z.h ) I am getting the following error when I do 'Build & Reload' in Rstudio. Error in dyn.load(dllfile) : unable to load shared object '/Users/abcd/BART/bart_pkg1/src/bartpkg.so': dlopen(/Users/abcd/BART/bart_pkg1/src/bartpkg.so, 6): Symbol not found: __ZN3RNG4nfixElm

R Package Build/Install Error: “object not found” even though I have it in R/sysdata.rda

断了今生、忘了曾经 提交于 2020-06-26 12:06:48
问题 Similar Question accessing sysdata.rda within package functions Why This Similar Question Does Not Apply To Me They were able to actually build it, and apparently it was a Github error for them (not related) R VERSION 3.4.2 (I tried using 3.4.3 as well but the same problem occurred) EDIT: I am on Windows 10 Context I have fully read the following tutorial on R packages and how to include .Rda files in them. I have LazyData in my DESCRIPTION file set as true as well. I have tried both the data

R package build failing on Unix machines due to missing GSL - GNU Scientific Library

 ̄綄美尐妖づ 提交于 2020-06-24 09:14:32
问题 I am facing a particularly vexing problem with R package development. My own package, called ggstatsplot (https://github.com/IndrajeetPatil/ggstatsplot), depends on userfriendlyscience , which depends on another package called MBESS , which itself ultimately depends on another package called gsl . There is no problem at all for installation of ggstatsplot on a Windows machine (as assessed by AppVeyor continuous integration platform: https://ci.appveyor.com/project/IndrajeetPatil/ggstatsplot).

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

Error installing RODBC or ODBC on a Sagemaker Jupyter NoteBook Instance

梦想的初衷 提交于 2020-04-12 04:55:32
问题 I have been trying to establish a connection to Teradata from a Sagemaker Jupyter Notebook instance. I was trying to do it the way I would through R Studio. But when ever I try to install the package in the instance I get an non-zero exit status error. I have tried installing the following ways: remotes::install_github() or devtools::install_github() and also: install.packages('odbc', repo="https://cran.rstudio.com/") I tryed the same with RODBC, and I get the same warnings or errors. Any

Error installing RODBC or ODBC on a Sagemaker Jupyter NoteBook Instance

帅比萌擦擦* 提交于 2020-04-12 04:54:52
问题 I have been trying to establish a connection to Teradata from a Sagemaker Jupyter Notebook instance. I was trying to do it the way I would through R Studio. But when ever I try to install the package in the instance I get an non-zero exit status error. I have tried installing the following ways: remotes::install_github() or devtools::install_github() and also: install.packages('odbc', repo="https://cran.rstudio.com/") I tryed the same with RODBC, and I get the same warnings or errors. Any