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

Error installing devtools, dplyr,ggplot2 on R-devel 3.4.0 on Windows

I will submitting my package to CRAN. I have already built with R 3.2.4 and I now am trying to build on R-devel 3.4.0 before submitting to CRAN as required. I am having problems installing packages. I have installed Rtools33.exe for Windows. But I…
Tinniam V. Ganesh
  • 1,979
  • 6
  • 26
  • 51
0
votes
1 answer

Error while installing "nloptr_1.0.4.tar.gz" from local

When i tried to install nloptr_1.0.4.tar.gz from local, It needed another unix library nlopt-2.4.2.tar.gz which I got it resolved from the following thread Error while installing a tar.gz package in R But, even after that the package is not getting…
0
votes
2 answers

Can I generate .Rd files without roxygen2 annotations

Is it possible to generate .Rd files for R functions without manually writing roxygen annotations? I know one method is to use prompt() but this does not look at arguments or return values. Can it done through any other command or with RStudio?
Tinniam V. Ganesh
  • 1,979
  • 6
  • 26
  • 51
0
votes
1 answer

Rstudio not generating .Rd files

I had created an R package several months using Rstudio. All I had to was to select File->New Project ->New Directory ->R package and then add R files to the project after specifying project name. When I clicked "Create Project" the R package…
Tinniam V. Ganesh
  • 1,979
  • 6
  • 26
  • 51
0
votes
2 answers

Installing newly developed R package in mac OS X el Capitan

I just developed and released a package called DiversityOccupancy (version 1.0.2) in CRAN. It passes every R CMD check --as-cran, and I have been able to install it in Ubuntu, and Windows without any problem. However, when I tried to install it on a…
Derek Corcoran
  • 3,930
  • 2
  • 25
  • 54
0
votes
0 answers

webshot R-package capture unhide hidden div

I want to use webshot r-package to capture a web page but there is a small button which revel the hidden divs. How can I capture the page unhiding those divs.
TheRimalaya
  • 4,232
  • 2
  • 31
  • 37
0
votes
2 answers

R package which imports SparkR (not on CRAN)

This question is related to this: when you are writing a package, how to specify a dependency (either in Imports or Depends) on an existing R package which is not on CRAN. I am writing an R package that imports SparkR, which is not in CRAN anymore…
Pablo
  • 328
  • 2
  • 16
0
votes
1 answer

Error during build and reload in R

I am roxygenizing a package I am making in R. The script is #' HandyTools #' #' Check if required packages are installed or not and installs them if not #' @param packageList - a list containing the required package names #' #' @examples #'…
j1897
  • 1,507
  • 5
  • 21
  • 41
0
votes
0 answers

R package link to C igraph

I have some C codes that uses igraph C library. Now I want to make an R package from those. My question is asked here before: R package that links to external C library But since it was asked 3 years ago, I wanted to make sure there is no update on…
Ghazale
  • 5
  • 5
0
votes
1 answer

R package containing C++ library cannot build for window

I am trying to write a R package using Rcpp. I was successful in making it work for Linux but not for Windows. It contains my C++ codes as well as another library. The code is available here: https://github.com/Healthcast/TransEnt/tree/devel-win In…
Ghazale
  • 5
  • 5
0
votes
0 answers

qsub: Include response to R prompt in linux script

I am trying to install the "rpud" package from the bioconductor: source("http://bioconductor.org/biocLite.R") biocLite("rpud") This executed normally, but then lists several old package dependences, and asks me if I want to update them: Update…
Lewkrr
  • 414
  • 4
  • 13
0
votes
0 answers

How to save and load a splinefun object in R?

I have been using the splinefun function in R to create a smooth interpolation between some data x and y. For example: x <- 1:10 y <- x^2 f <- splinefun(x, y) f(seq(1, 10, by = 0.1)) Now assume that obtaining y from x is time-consuming. The two…
epsilone
  • 745
  • 11
  • 23
0
votes
1 answer

Dealing with javascript code when building R Shiny custom input binding packages

I'm writing some input bindings in Shiny, and want to build my functions into a package. The problem now is input bindings requires javascript code which is usually located in the www directory in the application directory, so the user need to copy…
Lytze
  • 755
  • 6
  • 12
0
votes
1 answer

How to access family belonging of R package function

I'm trying on creating my first R package. Google'd but nothing specific to my question came up. In the roxygen manual it says @family family name Automatically adds see-also cross-references between all functions in a family. A function can…
uncool
  • 2,613
  • 7
  • 26
  • 55
0
votes
1 answer

setkey() generating note on R CMD check - no visible binding for global variable

I created an R package and submitted it to CRAN. The CMD check output 1 NOTE: fun: no visible binding for global variable 'id' CRAN suggested that I fix it. fun() (one of my functions) is a custom import to read files created by another…
jpinelo
  • 1,414
  • 5
  • 16
  • 28