How to install package fOptions? - r

I'm trying to install the package fOptions but got the error:
> library(fOptions)
Error in library(fOptions) : there is no package called ‘fOptions’

The library function is used to load packages, not to install them. To install a package, you need to use install.packages("fOptions"). See ?library and ?install.packages for more details.

Related

unable to install the SASXport package

I read some online documentation to install the SASXport and it said to install the package from the below website https://cran.r-project.org/src/contrib/Archive/SASxport
I used the latest SASxport_1.7.0.tar.gz version of it and i could not install the package SASxport. when i do so i get the below message which removes the SASxport package and when i call the library(SASxport) it says, there is no package called ‘SASxport’.
Could you please help me with this, like how to install this package?

Install package "locClass" in R

I want to install a package named "locClass" in R but always failed and kept getting the following warning:
install.packages("locClass", repos="http://download.r-forge.r-project.org/")
Package which is only available in source form, and may need compilation of C/C++/Fortran: ‘locClass’
These will not be installed
The install command is referred to: https://r-forge.r-project.org/R/?group_id=1187
Also, I downloaded the package source from the above website. But R returned the following:
library(locClass)
Error in library(locClass) : ‘locClass’ is not a valid installed package
My R version is 3.3.3. I tried the 3.4.0 but failed the same way.
This is not exactly a solution but an alternative to utilize functionality of package locClass. Download the package file of locClass from here and source(functions.R) present here. This way you can use all functions available in package.
Note : function.R means FLXMCL.R, FLXMCLconstant.R etc.
I'm still looking for a better solution but this is a temporary alternative.

how to install hrbrmisc in R

I am a beginner in R, I want the below library hrbrmstr/hrbrmisc for one of my programs.
I have installed Devtools and then tried to install using
install_github("hrbrmstr/hrbrmisc")
It gives an error as Error: could not find function "install_github"
Any help is appreciated...
Just run:
install.packages("devtools")
devtools::install_github("hrbrmstr/hrbrmisc")
to install the package.

Cant install blotter package used for quantstrat

I'm trying to use the quantstrat package in R. I have uploaded/installed the package using
install.packages("quantstrat", repos="http://R-Forge.R-project.org")
However the once I use
require(quanstrat)
I get the message :
Loading required package: quantstrat
Failed with error: ‘package ‘blotter’ required by ‘quantstrat’ could not be found’
I then use
install.packages("blotter", repos="http://R-Forge.R-project.org")
but get the following message:
Package which is only available in source form, and may need compilation of C/C++/Fortran:
‘blotter’
These will not be installed
Can anyone offer some suggestion?
I am very late here, but perhaps relevant to note that "blotter" and "quantstrat" are not on CRAN, and several years ago moved to GitHub. The README on the repo (https://github.com/braverock/quantstrat) has more information for installing blotter and more importantly quantstrat.
install.packages("devtools") # if not installed
install.packages("FinancialInstrument") #if not installed
install.packages("PerformanceAnalytics") #if not installed
# next install blotter from GitHub
devtools::install_github("braverock/blotter")
# next install quantstrat from GitHub
devtools::install_github("braverock/quantstrat")

How to install the PROcess Packages which is a tar file in R?

I tried for installing the PROcess package by following way:
>install.packages("/home/R-Packages/PROcess.tar.gz",repos=NULL)
Then following error occurs:
ERROR: dependency ‘Icens’ is not available for package ‘PROcess’
Then I have tried to install the Icens packages:
>install.packages("Icens")
Then following error occurs:
package ‘Icens’ is not available (for R version 2.15.3)
So Can anyone help me out of this problem and suggest some way so that I can able to install the PROcess packages.
The Icens package has been moved from CRAN to another repository: Bioconductor. The Bioconductor page of Icens states that it can be installed using the following command:
source("http://bioconductor.org/biocLite.R")
biocLite("Icens")

Resources