[R] error of installing/building an R package (PortfolioAnalytics) on Win 7

Uwe Ligges ligges at statistik.tu-dortmund.de
Mon Dec 3 10:34:20 CET 2012



On 03.12.2012 01:42, Jack Bryan wrote:
>
> Thanks for your reply.
>
> On
> http://cran.r-project.org/bin/windows/Rtools/
>
> Frozen
> Rtools216.exe   R >2.15.1 to R 2.16.x  No
> Frozen means "no available" ?

Frozen = Yes means, that the toolchain does not change any more and is 
fixed to be used for the corresponding versions of R mentioned in the table.

Frozen = no means it may be updated from time to time to allow for new 
features or bugfixes.

Uwe Ligges


>
> So, PortfolioAnalytics cannot be used on Linux or Win until Mar. 2012 ?
>
> Are there substitutes ?
>
> Any help will be appreciated.
>
>> Date: Sun, 2 Dec 2012 16:35:44 -0800
>> Subject: Re: [R] error of installing/building an R package (PortfolioAnalytics) on Win 7
>> From: djmuser at gmail.com
>> To: dtustudy68 at hotmail.com
>>
>> (1) If you have R 2.15.2 on your computer, you need Rtools215, not
>> 216; the latter is for the upcoming 2.16 release that is in beta right
>> now and is not expected to be released before late March 2013.
>>
>> (2) If you go to the project page on R-Forge,
>> https://r-forge.r-project.org/R/?group_id=579
>> you'll discover that PortfolioAnalytics failed to build there. Until
>> it does, you won't be able to install the development version of the
>> package in your R library. When it does, you would use something like
>>
>> install.packages("PortfolioAnalytics", repos =
>> "r-forge.r-project.org", type = "source")
>>
>> at the command line to install it. This is necessary on Linux, but
>> depending on the package, there may be available binaries for Windows
>> and Mac, in which case you can install those instead of having to
>> build it from source and you can remove the last argument above from
>> the install.packages() call.
>>
>> Dennis
>>
>> On Sun, Dec 2, 2012 at 4:00 PM, Jack Bryan <dtustudy68 at hotmail.com> wrote:
>>>
>>> Hi,
>>>
>>> I am trying to install a package (PortfolioAnalytics) of R 2.15.2 on Win 7.
>>>
>>> I have tried the following instructions on :
>>>
>>> http://stackoverflow.com/questions/11105131/cannot-install-r-forge-package-using-install-packages
>>>
>>> I used svn checkout svn://svn.r-forge.r-project.org/svnroot/returnanalytics/  to
>>> get the package and then copy it to my Win 7.
>>>
>>>
>>> Then, on Win 7 I run:
>>>
>>>> install.packages('PortfolioAnalytics', type='source',  repos='<The location of the package on Win 7>')
>>>
>>> I got
>>>
>>> Warning: unable to access index for repository C:/myPath/library/returnanalytics/pkg/PerformanceAnalytics/src/contrib
>>> Warning: package ‘PortfolioAnalytics’ is not available (for R version 2.15.2)
>>>
>>>
>>> I also tried
>>>
>>> http://stackoverflow.com/questions/4739837/how-do-i-install-an-r-package-from-the-source-tarball-on-windows
>>>
>>> http://cran.r-project.org/doc/manuals/R-admin.html#Windows-packages    (6.3.1 Windows)
>>>
>>> http://cran.r-project.org/doc/manuals/R-admin.html#The-Windows-toolset  (Appendix D The Windows toolset)
>>>
>>> I have installed RTools216 on Win 7. But, it does not say how to use it to build a R package on Win 7.
>>> http://cran.r-project.org/bin/windows/Rtools/Rtools216.exe
>>>
>>> Any help will be appreciated.
>>>
>>> Thanks
>>>
>>>
>>>
>>>
>>>          [[alternative HTML version deleted]]
>>>
>>>
>>> ______________________________________________
>>> R-help at r-project.org mailing list
>>> https://stat.ethz.ch/mailman/listinfo/r-help
>>> PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
>>> and provide commented, minimal, self-contained, reproducible code.
>>>
>   		 	   		
> 	[[alternative HTML version deleted]]
>
>
>
> ______________________________________________
> R-help at r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
> and provide commented, minimal, self-contained, reproducible code.
>




More information about the R-help mailing list