Questions tagged [r-package]

This tag should be used for questions regarding the development of R packages. Do not use this tag to ask questions about the use of R packages. Many common R packages have their own tags for that purpose.

This tag should be used for questions regarding the development of R packages. Do not use this tag to ask questions about the use of R packages. Many common R packages have their own tags for that purpose.

The R Core Team defines a package in the Manual on Writing R Extensions:

A package is a directory of files which extend R, a source package (the master files of a package), or a tarball containing the files of a source package, or an installed package, the result of running R CMD INSTALL on a source package. On some platforms (notably OS X and Windows) there are also binary packages, a zip file or tarball containing the files of an installed package which can be unpacked rather than installing from sources.

1279 questions
0
votes
1 answer

R package help in github gh-pages

Given an R package with a git repo on github, I'm looking for an optimal way to build a github hosted (gh-pages) site from the function documentation within the package (in the form roxygen2 comments). It'd be great to be able to include vignettes…
Dave Braze
  • 441
  • 3
  • 14
0
votes
2 answers

R package installation fails cant find existing dylib

Installing R to a custom location (./configure --prefix=$HOME/RTargets/3.3). This goes fine, but install.packages('devtools') fails. The message is: installing via 'install.libs.R' to /Users/me/Library/R/3.3/library/stringi ** R ** inst ** preparing…
gph
  • 1,045
  • 8
  • 25
0
votes
0 answers

What are the cause of warnings in latest CRAN check?

Previously everything was ok. But after the recent CRAN checks, many warnings are encountered. Here it is /data/gannet/ripley/R/test-clang/RcppParallel/include/tbb/task.h:721:30: runtime error: member call on address 0x7fd0281f3d00 which does…
cryptomanic
  • 5,986
  • 3
  • 18
  • 30
0
votes
1 answer

R win-builder fails silently

I am testing a package with win-builder (R-release), and the package checks fail without returning a real error message. These same checks work fine locally on Windows and Linux for R 3.3.2 and 3.2.0. I have no compiled code, just uncompiled R code,…
landau
  • 5,636
  • 1
  • 22
  • 50
0
votes
1 answer

How to solve: the condition has length > 1 and only the first element will be used

I use the following code to calculate tax using R. where two variable can be given as argument . When a data set is used i want to calculate tax based on the category. I am new to package development. Kindly help me solve this problem. I get error…
Sulthan
  • 25
  • 1
  • 1
  • 11
0
votes
1 answer

Portable Makefiles that call Rscript

I'm writing an R package that generates Makefiles, I need to write a Makefile that calls Rscript before making the targets. A MWE of the problem is below. Make quits in error because the right-hand side of .INIT does not execute. Writing a recipe…
landau
  • 5,636
  • 1
  • 22
  • 50
0
votes
1 answer

Text Translation Issue

I am trying to do sentiment analysis in R on a Norwegian data. I was thinking of first converting the data into english and then going forward with the analysis. But for the conversion we are having to send the data outside the client network(using…
Saurav
  • 597
  • 10
  • 24
0
votes
0 answers

downloading currencies data with fimport package r

I'm trying to download currencies historical data from yahoo finance using fimport package in R. the function i'm using is yahooSeries.But the problem is that for some currencies its work like: NZD=X,JPY=X. But for some currencies its not working,…
yudyud
  • 27
  • 1
  • 6
0
votes
1 answer

getting error cannot convert const RcppGSL::matrix to "SEXP" in initialization

I am using RcppGSL to make a wrapper package around a C library. I encounter an error when I am trying to return the result which comes from a gsl_matrix * cannot convert const RcppGSL::matrix to "SEXP" in initialization Here is the code…
0
votes
1 answer

Unable to build inline segments in RSiteCatalyst package in R

I am trying to build the inline segment to filter the pages (ex. to separate the pages for blogs and games) using the function BuildClassificationValueSegment() to get the data from Adobe Analytics API, I have tried some thing like…
Basu
  • 77
  • 2
  • 10
0
votes
1 answer

Setting up R package SQL-integration tests on Appveyor

I'm looking to run a few SQL integration tests in my R package on Appveyor. I'm using an mdf file to set up the database of interest, but I'm seeing issues with having an mdf file in my R package. Here are the relevant steps: 1) Before building,…
0
votes
1 answer

R package building error

I am trying to build an R package. I usually run the clean and rebuild command in Rstudio. I am now getting this error message: ==> devtools::document(roclets=c('rd', 'collate', 'namespace', 'vignette')) Updating ED2io documentation Loading…
Manfredo
  • 1,760
  • 4
  • 25
  • 53
0
votes
1 answer

Installing ggplot2 in R without being connected to the Internet

I tried to install the package ggplot2 on my computer with the command line: install.packages("C:/r-packages/ggplot2",repos = NULL,type = "sourse") Unfortunately I got the following error: * installing *source* package 'ggplot2' ... ** package…
R.Ax
  • 9
  • 1
0
votes
1 answer

How to add more words into wordcloud R package that can be excluded in the output?

I'm using package "wordcloud" with description "Word Cloud" from the R Packages repository. When I create wordcloud from some random text, some words are omitted automatically as they should not be a part of wordcloud. Now, I want to add more words…
Grimlock
  • 1,033
  • 1
  • 9
  • 23
0
votes
1 answer

Making a toy package on R, unable to use the other functions in the R file

I am trying to create my own R-package as an exercise. I have followed the online tutorials by Hillary Parker and have managed to get something going. The package I am trying to make takes a csv file, and prints the head() and tail() of the…
Pragyaditya Das
  • 1,648
  • 6
  • 25
  • 44