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

Is it possible to generate more than one page PDF report in R?

Can someone please suggest me which R-package should be used to generate a large report. This report could be more 50-60 pages or even more than that. Additionally, there is requirement to print these report with a nice look and feel i.e. different…
0
votes
1 answer

Using Rstudio to build R packages

I am using RStudio to build a R package. I am able to create a New Project -> R package -> Package name and add R files. This then creates all the appropriate folders with the R files and the .Rd files in the man folder. I want to know how I can add…
Tinniam V. Ganesh
  • 1,979
  • 6
  • 26
  • 51
0
votes
0 answers

Not able to install any package on a remote machine (Windows Server 2012) with R-3.0.2

I have installed R-3.0.2 and RStudio 0.99.442 on a remote machine with Operating System as Windows Server 2012 R2. Now the remote machine has no internet access, so the only way to install package is first downloading the package source file…
tanG
  • 71
  • 9
0
votes
1 answer

Where are latex files when I compile a package

I am wondering why I cannot find the latex source for the manual of the package when it is compiled/check . I use Rstudio to compile/check a package. There is an option 'clean up output after successfully R CMD check' that is not checked. I also…
TPArrow
  • 1,518
  • 18
  • 25
0
votes
1 answer

what are the additional parameters reported by "summary.frontier" when "extraPar = TRUE"?

According to the package description for "frontier", when extraPar is set to be TRUE, some additional parameters will be reported such as "sigmaSqU", "sigmaSqV" etc. However, it also states that "the sigmaSqU and sigmaU are not the variance and…
0
votes
1 answer

R - Error in arules and arulesViz packages

I am using the arules and arulesViz package in R to implement a set of association rules on my data. It worked fine till few days back. But now I am getting the below error whenever I load the R file where I used this package. Loading required…
msbmunees
  • 1
  • 1
  • 2
0
votes
1 answer

devtools::build: "Error in if (!is_loaded(pkg) || (is_loaded(pkg) && reload)) { : missing value where TRUE/FALSE needed"

Everytime I try use the devtools functions build, check or document a certain R-package folder it throws the following error: Error in if (!is_loaded(pkg) || (is_loaded(pkg) && reload)) { : missing value where TRUE/FALSE needed or if (pkgname !=…
tover
  • 535
  • 4
  • 11
0
votes
1 answer

Make R-package that just loads other packages and exports all functions

Is it possible to make an R-package that just exports all functions from other R-packages? Is there another way to have the functions in a package categorized and ordered accordingly in the manual, code files etc.?
tover
  • 535
  • 4
  • 11
0
votes
0 answers

How to use fasta data as an argument in .C() function of R

I did programming my method in c++ as function named "test.cc".The syntax of my program is; ./test input.fasta theta > output.txt Where input.fasta is data file >0 1000 0 100 >0 1000 1 100 >0 1000 2 101 Theta is numeric value range 2 to 10. The…
statuser
  • 49
  • 1
  • 2
  • 8
0
votes
1 answer

Can't search for tweets in a particular span with twitteR. (R package)

I am planning to extract tweets for a particular span using the R package twitteR. data<- searchTwitter("Kohli",n=100, lang="en", since="2014-12-01", until="2014-12-30",cainfo="cacert.pem") But I am getting this message In…
Darshan
  • 25
  • 6
0
votes
0 answers

cannot install R package

I hit this error when I try to install rJava package in R. Please help > utils:::menuInstallPkgs() trying URL 'http://lib.stat.cmu.edu/R/CRAN/bin/windows/contrib/3.1/rJava_0.9-6.zip' Content type 'text/html; charset=UTF-8' length 3280 bytes opened…
gianteagle
  • 67
  • 5
-1
votes
1 answer

In R package workflow how to add image to shiny app

I have problems to understand this behavior: I have a small shiny app organized in a package workflow like described here: Put all R code in the R/ directory. Write a function that starts your app (i.e. calls shinyApp() with your UI and…
TarJae
  • 72,363
  • 6
  • 19
  • 66
-1
votes
2 answers

How to check if a package is installed, and if not install and load it?

I need a command to check if a package in installed in R and if not then installs it and load the library. Probably like If package="xyz" is installed then "do nothing" else "install package" and "library" I tried system.file(package="xyz"), but it…
-1
votes
2 answers

`R` equivalent to pythons `from src.file import function, class, variable`?

I have defined three different S4 classes in their own scripts in my R package. One of those classes uses the other two classes. I see that devtools::load_all() loads the scripts in alphabetical order, so that if a script depends on another that is…
Jayden.Cameron
  • 499
  • 4
  • 17
-1
votes
1 answer

Reinstalling R Packages in New Location after R Update

I'm pretty new to R, but I've used it a little bit. However, I'm running into a problem and can't figure it out, despite having read through over a dozen other resources. For reasons I won't get into, I had to update R and R Studio. However, now…
lwe
  • 323
  • 1
  • 8