Re: [R] RQuantLib

2017-12-30 Thread rsherry8
Based upon comments I received on the R-Help list, I ran the following 
commands and got the following output:


>  drat::addRepo("ghrr")
>  install.packages("RQuantLib", type="binary")
Installing package into ‘C:/Users/rsher/Documents/R/win-library/3.4’
(as ‘lib’ is unspecified)
--- Please select a CRAN mirror for use in this session ---
Warning: unable to access index for repository 
https://ghrr.github.io/drat/bin/windows/contrib/3.4:
  cannot open URL 
'https://ghrr.github.io/drat/bin/windows/contrib/3.4/PACKAGES'

also installing the dependency ‘Rcpp’

trying URL 'https://cran.uib.no/bin/windows/contrib/3.4/Rcpp_0.12.14.zip'
Content type 'application/zip' length 4358936 bytes (4.2 MB)
downloaded 4.2 MB

trying URL 'https://cran.uib.no/bin/windows/contrib/3.4/RQuantLib_0.4.2.zip'
Content type 'application/zip' length 7259503 bytes (6.9 MB)
downloaded 6.9 MB

package ‘Rcpp’ successfully unpacked and MD5 sums checked
package ‘RQuantLib’ successfully unpacked and MD5 sums checked

The downloaded binary packages are in
C:\Users\rsher\AppData\Local\Temp\Rtmp0OoZCW\downloaded_packages

This time, I used the mirror in Europe rather than a mirror in the 
United States and it worked. I am wondering if that matters. I want to 
thank everybody for their help.


Bob Sherry


On 12/30/2017 12:44 PM, David Winsemius wrote:

On Dec 30, 2017, at 7:54 AM, rsherry8  wrote:

OA,

Thanks for the response. I downloaded the file RQuantLib_0.4.4.tar.gz
into a directory c:\r.zip on my Windows machine. I then ran the
following command and I received the following output:


install.packages("RQuantLib", lib="/r.zip/")

Warning message:
package ‘RQuantLib’ is not available (for R version 3.4.3)

The install.packages command should include repo=NULL when installing from local 
binary package, and it also should include type="source when the package is not 
binary.

I did not unpack the .gz file. Should I have?

Please comment.
Bob Sherry

On 12/30/2017 2:24 AM, Orvalho Augusto wrote:

Hi Bob,

I don't know what is the cause of your trouble but try this:
1. Download the zip of package.

2. And install it from local zip files. This you find on the Packages
menu.

Hope it helps
OA


On Fri, Dec 29, 2017 at 10:31 AM, rsherry8 > wrote:

Joshua,

Thanks for the response. When you said at least version 3.4.0, I
upgraded to 3.4.2 which I believe is the current version. Now, I
attempted to install the package RQuantLib but it did not work.
Here is what I got:


install.packages("RQuantLib")

Installing package into ‘C:/Users/rsher/Documents/R/win-library/3.4’
(as ‘lib’ is unspecified)
Warning message:
package ‘RQuantLib’ is not available (for R version 3.4.2)


Please help.
Thanks,
Bob Sherry


On 12/28/2017 10:28 PM, Joshua Ulrich wrote:

On Thu, Dec 28, 2017 at 6:02 PM, rsherry8
> wrote:

I have recently installed R on my new computer. I also
want to install the
package RQuantLib. So I run the following command and get
the following
output:

  install.packages("RQuantLib")

Installing package into
‘C:/Users/rsher/Documents/R/win-library/3.2’
(as ‘lib’ is unspecified)
--- Please select a CRAN mirror for use in this session ---
Warning message:
package ‘RQuantLib’ is not available (for R version 3.2.4
Revised)

The package did not install. Am I doing something wrong.
Is the package
going to be updated for the latest version of R?

Windows binary packages are only built for the most current
(major)
version of R.  You need to upgrade to at least R-3.4.0, or you
will
have to install RQuantLib (and therefore QuantLib itself) from
source.

Thanks,
Bob

__
R-help@r-project.org  mailing
list -- To UNSUBSCRIBE and more, see
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.




__
R-help@r-project.org  mailing list --
To UNSUBSCRIBE and more, see
https://stat.ethz.ch/mailman/listinfo/r-help

PLEASE do read the posting guide
http://www.R-project.org/posting-guide.html

and provide 

[R] 10 Minute Time Window Aggregate By Multiple Grouping Variables

2017-12-30 Thread Rahul Sharm
Hello All,
I have 1M rows of time stamped information about delivery trucks and their
trip related information from simulation .Detailed info the column names
and attributes for clarity


   1. id: alphanumeric factor/character
   2. datetime.of.trip.start: POSIXct -mm-dd hh:mm:ss
   3. datetime.of.trip.end: POSIXct -mm-dd hh:mm:ss
   4. trip.distance: numeric, miles
   5. trip.fuel.consumed: numeric, gallons

Close to 2500 trucks , simulated for a year with varying trip behavior.
This is what I am trying to accomplish 1. First, I want to create 10 minute
intervals from a chosen start date and end date from simulation, ex:
2011-03-30 00:00:00 to 2012-04-01 00:00:00 { approximately 8760 hours *
six, 10 minute blocks per hour = looking at 52K unique timestamps }. If it
works, will look into 15 minute, hourly and so on. * This will be
representative of a start.time.index * I want to recreate the same time
window with same frequency but for a column named end.time.index with time
increment of 10 minutes 2. Go to the raw data, inspect the "
datetime.of.trip.start " and "datetime.of.trip.end", get the time span,
match it with the derived 10 min time time intervals (start and end),
equally distribute the columns 4,5 (the numeric variables) among the 10
minute indices.
Single row example

   - datetime.of.trip.start: 2017-01-01 00:00:00
   - datetime.of.end.start: 2017-01-01 01:00:00
   - trip.distance = 60 miles
   - trip.fuel.consumed = 6 gallons



Interpretation of raw data, on January 1, 2017 from 00 am/midnight to 1 am,
the delivery truck traveled 60 miles using 6 gallons of fuel 3. I want to
be able to do this over entire raw data, get the aggregate sum of the
variables of interest (distance and fuel for example) by the 10.min start
and end time intervals across all ids as long as there is the 10min
start/end time overlap derived from the raw data 4. Repeat the same with
some grouping criteria from DateTime or suitable index, example day of week
or by truckid. From index 1 (00:00:00 to  00:10:00 ) to index 6(00:00:50 to
01:00:00), 60 miles and 6 gallons are equally distributed.

So far, I have created the 10 min HH:MM ids and exploring the foverlaps in
data.table, period.apply from xts, converting the time indices into
numerics and explore ddply %>% mutate %>% group by options. I am trying to
get a more streamlined version that would work as a time series object
which would help me get the descriptive statistics (aggregate by grouping
criteria for sums and means) and do some plotting and time series analysis
(RMA, smoothing, mixed regression models). I got stuck and totally lost
when working with zoo and xts, I was creating the index and working on
period.apply but was not sure how to work around with 2 POSIXct column
variables (start and end). I have the desired index and the cleaned data, I
am looking for a more elegant data.table solution to complete the 10min
aggregate.

Thanks!

 # simple illustration of the daa

id<-c("A1","A1","A1","A1","A1","A1")

start.time.index=as.POSIXct (c("2017-01-01 00:00:00","2017-01-01
00:10:00","2017-01-01 00:20:00","2017-01-01 00:30:00","2017-01-01
00:40:00","2017-01-01 00:50:00"), format="%Y-%m-%d %H:%M:%S")


end.time.index=as.POSIXct (c("2017-01-01 00:10:00","2017-01-01
00:20:00","2017-01-01 00:30:00","2017-01-01 00:40:00","2017-01-01
00:50:00","2017-01-01 01:00:00"), format="%Y-%m-%d %H:%M:%S")

trip.miles=c(10,10,10,10,10,10)
trip.fuel=c(1,1,1,1,1,1) # total of 6 gallons in 1 hour equally
divided into 6 bins of 10 minute window.

desired.data<-c(id,start.time.index,end.time.index,trip.miles,end.time.index)

[[alternative HTML version deleted]]

__
R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see
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.


Re: [R] RQuantLib

2017-12-30 Thread David Winsemius

> On Dec 30, 2017, at 9:46 AM, David Winsemius  wrote:
> 
> 
>> On Dec 30, 2017, at 9:44 AM, David Winsemius  wrote:
>> 
>> 
>>> On Dec 30, 2017, at 7:54 AM, rsherry8  wrote:
>>> 
>>> OA,
>>> 
>>> Thanks for the response. I downloaded the file RQuantLib_0.4.4.tar.gz 
>>> into a directory c:\r.zip on my Windows machine. I then ran the 
>>> following command and I received the following output:
>>> 
 install.packages("RQuantLib", lib="/r.zip/")
>>> Warning message:
>>> package ‘RQuantLib’ is not available (for R version 3.4.3)
>> 
>> The install.packages command should include repo=NULL when installing from 
>> local binary package, and it also should include type="source"

Added the missing dbl-quote.

>>  when the package is not binary.
> 
> Furthermore, the system requirements in the DESCRIPTION file are:
> 
> 
> SystemRequirements:   QuantLib library (>= 1.8.0) from http://quantlib.org, 
> Boost library from http://www.boost.org

And finally (perhaps):

The binaries at CRAN for windows are still at 0.4.2 so you might consider 
install that version from source:

RQuantLib_0.4.2.tar.gz at 
https://cran.r-project.org/src/contrib/Archive/RQuantLib/RQuantLib_0.4.2.tar.gz


> 
> 
>>> 
>>> I did not unpack the .gz file. Should I have?
>>> 
>>> Please comment.
>>> Bob Sherry
>>> 
>>> On 12/30/2017 2:24 AM, Orvalho Augusto wrote:
 Hi Bob,
 
 I don't know what is the cause of your trouble but try this:
 1. Download the zip of package.
 
 2. And install it from local zip files. This you find on the Packages 
 menu.
 
 Hope it helps
 OA
 
 
 On Fri, Dec 29, 2017 at 10:31 AM, rsherry8 > wrote:
 
  Joshua,
 
  Thanks for the response. When you said at least version 3.4.0, I
  upgraded to 3.4.2 which I believe is the current version. Now, I
  attempted to install the package RQuantLib but it did not work.
  Here is what I got:
 
> install.packages("RQuantLib")
  Installing package into ‘C:/Users/rsher/Documents/R/win-library/3.4’
  (as ‘lib’ is unspecified)
  Warning message:
  package ‘RQuantLib’ is not available (for R version 3.4.2)
 
 
  Please help.
  Thanks,
  Bob Sherry
 
 
  On 12/28/2017 10:28 PM, Joshua Ulrich wrote:
 
  On Thu, Dec 28, 2017 at 6:02 PM, rsherry8
  > wrote:
 
  I have recently installed R on my new computer. I also
  want to install the
  package RQuantLib. So I run the following command and get
  the following
  output:
 
install.packages("RQuantLib")
 
  Installing package into
  ‘C:/Users/rsher/Documents/R/win-library/3.2’
  (as ‘lib’ is unspecified)
  --- Please select a CRAN mirror for use in this session ---
  Warning message:
  package ‘RQuantLib’ is not available (for R version 3.2.4
  Revised)
 
  The package did not install. Am I doing something wrong.
  Is the package
  going to be updated for the latest version of R?
 
  Windows binary packages are only built for the most current
  (major)
  version of R.  You need to upgrade to at least R-3.4.0, or you
  will
  have to install RQuantLib (and therefore QuantLib itself) from
  source.
 
  Thanks,
  Bob
 
  __
  R-help@r-project.org  mailing
  list -- To UNSUBSCRIBE and more, see
  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.
 
 
 
 
  __
  R-help@r-project.org  mailing list --
  To UNSUBSCRIBE and more, see
  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@r-project.org mailing list -- To UNSUBSCRIBE and more, see
>>> https://stat.ethz.ch/mailman/listinfo/r-help
>>> PLEASE do 

Re: [R] RQuantLib

2017-12-30 Thread David Winsemius

> On Dec 30, 2017, at 9:44 AM, David Winsemius  wrote:
> 
> 
>> On Dec 30, 2017, at 7:54 AM, rsherry8  wrote:
>> 
>> OA,
>> 
>> Thanks for the response. I downloaded the file RQuantLib_0.4.4.tar.gz 
>> into a directory c:\r.zip on my Windows machine. I then ran the 
>> following command and I received the following output:
>> 
>>> install.packages("RQuantLib", lib="/r.zip/")
>> Warning message:
>> package ‘RQuantLib’ is not available (for R version 3.4.3)
> 
> The install.packages command should include repo=NULL when installing from 
> local binary package, and it also should include type="source when the 
> package is not binary.

Furthermore, the system requirements in the DESCRIPTION file are:


SystemRequirements: QuantLib library (>= 1.8.0) from http://quantlib.org, 
Boost library from http://www.boost.org


>> 
>> I did not unpack the .gz file. Should I have?
>> 
>> Please comment.
>> Bob Sherry
>> 
>> On 12/30/2017 2:24 AM, Orvalho Augusto wrote:
>>> Hi Bob,
>>> 
>>> I don't know what is the cause of your trouble but try this:
>>> 1. Download the zip of package.
>>> 
>>> 2. And install it from local zip files. This you find on the Packages 
>>> menu.
>>> 
>>> Hope it helps
>>> OA
>>> 
>>> 
>>> On Fri, Dec 29, 2017 at 10:31 AM, rsherry8 >> > wrote:
>>> 
>>>   Joshua,
>>> 
>>>   Thanks for the response. When you said at least version 3.4.0, I
>>>   upgraded to 3.4.2 which I believe is the current version. Now, I
>>>   attempted to install the package RQuantLib but it did not work.
>>>   Here is what I got:
>>> 
 install.packages("RQuantLib")
>>>   Installing package into ‘C:/Users/rsher/Documents/R/win-library/3.4’
>>>   (as ‘lib’ is unspecified)
>>>   Warning message:
>>>   package ‘RQuantLib’ is not available (for R version 3.4.2)
>>> 
>>> 
>>>   Please help.
>>>   Thanks,
>>>   Bob Sherry
>>> 
>>> 
>>>   On 12/28/2017 10:28 PM, Joshua Ulrich wrote:
>>> 
>>>   On Thu, Dec 28, 2017 at 6:02 PM, rsherry8
>>>   > wrote:
>>> 
>>>   I have recently installed R on my new computer. I also
>>>   want to install the
>>>   package RQuantLib. So I run the following command and get
>>>   the following
>>>   output:
>>> 
>>> install.packages("RQuantLib")
>>> 
>>>   Installing package into
>>>   ‘C:/Users/rsher/Documents/R/win-library/3.2’
>>>   (as ‘lib’ is unspecified)
>>>   --- Please select a CRAN mirror for use in this session ---
>>>   Warning message:
>>>   package ‘RQuantLib’ is not available (for R version 3.2.4
>>>   Revised)
>>> 
>>>   The package did not install. Am I doing something wrong.
>>>   Is the package
>>>   going to be updated for the latest version of R?
>>> 
>>>   Windows binary packages are only built for the most current
>>>   (major)
>>>   version of R.  You need to upgrade to at least R-3.4.0, or you
>>>   will
>>>   have to install RQuantLib (and therefore QuantLib itself) from
>>>   source.
>>> 
>>>   Thanks,
>>>   Bob
>>> 
>>>   __
>>>   R-help@r-project.org  mailing
>>>   list -- To UNSUBSCRIBE and more, see
>>>   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.
>>> 
>>> 
>>> 
>>> 
>>>   __
>>>   R-help@r-project.org  mailing list --
>>>   To UNSUBSCRIBE and more, see
>>>   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@r-project.org mailing list -- To UNSUBSCRIBE and more, see
>> 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.
> 
> David Winsemius
> Alameda, CA, USA
> 
> 'Any technology distinguishable from magic is insufficiently advanced.'   
> -Gehm's Corollary to Clarke's Third Law
> 
> __
> R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see
> 

Re: [R] RQuantLib

2017-12-30 Thread David Winsemius

> On Dec 30, 2017, at 7:54 AM, rsherry8  wrote:
> 
> OA,
> 
> Thanks for the response. I downloaded the file RQuantLib_0.4.4.tar.gz 
> into a directory c:\r.zip on my Windows machine. I then ran the 
> following command and I received the following output:
> 
>> install.packages("RQuantLib", lib="/r.zip/")
> Warning message:
> package ‘RQuantLib’ is not available (for R version 3.4.3)

The install.packages command should include repo=NULL when installing from 
local binary package, and it also should include type="source when the package 
is not binary.
> 
> I did not unpack the .gz file. Should I have?
> 
> Please comment.
> Bob Sherry
> 
> On 12/30/2017 2:24 AM, Orvalho Augusto wrote:
>> Hi Bob,
>> 
>> I don't know what is the cause of your trouble but try this:
>> 1. Download the zip of package.
>> 
>> 2. And install it from local zip files. This you find on the Packages 
>> menu.
>> 
>> Hope it helps
>> OA
>> 
>> 
>> On Fri, Dec 29, 2017 at 10:31 AM, rsherry8 > > wrote:
>> 
>>Joshua,
>> 
>>Thanks for the response. When you said at least version 3.4.0, I
>>upgraded to 3.4.2 which I believe is the current version. Now, I
>>attempted to install the package RQuantLib but it did not work.
>>Here is what I got:
>> 
>>> install.packages("RQuantLib")
>>Installing package into ‘C:/Users/rsher/Documents/R/win-library/3.4’
>>(as ‘lib’ is unspecified)
>>Warning message:
>>package ‘RQuantLib’ is not available (for R version 3.4.2)
>> 
>> 
>>Please help.
>>Thanks,
>>Bob Sherry
>> 
>> 
>>On 12/28/2017 10:28 PM, Joshua Ulrich wrote:
>> 
>>On Thu, Dec 28, 2017 at 6:02 PM, rsherry8
>>> wrote:
>> 
>>I have recently installed R on my new computer. I also
>>want to install the
>>package RQuantLib. So I run the following command and get
>>the following
>>output:
>> 
>>  install.packages("RQuantLib")
>> 
>>Installing package into
>>‘C:/Users/rsher/Documents/R/win-library/3.2’
>>(as ‘lib’ is unspecified)
>>--- Please select a CRAN mirror for use in this session ---
>>Warning message:
>>package ‘RQuantLib’ is not available (for R version 3.2.4
>>Revised)
>> 
>>The package did not install. Am I doing something wrong.
>>Is the package
>>going to be updated for the latest version of R?
>> 
>>Windows binary packages are only built for the most current
>>(major)
>>version of R.  You need to upgrade to at least R-3.4.0, or you
>>will
>>have to install RQuantLib (and therefore QuantLib itself) from
>>source.
>> 
>>Thanks,
>>Bob
>> 
>>__
>>R-help@r-project.org  mailing
>>list -- To UNSUBSCRIBE and more, see
>>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.
>> 
>> 
>> 
>> 
>>__
>>R-help@r-project.org  mailing list --
>>To UNSUBSCRIBE and more, see
>>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@r-project.org mailing list -- To UNSUBSCRIBE and more, see
> 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.

David Winsemius
Alameda, CA, USA

'Any technology distinguishable from magic is insufficiently advanced.'   
-Gehm's Corollary to Clarke's Third Law

__
R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see
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.

Re: [R] RQuantLib

2017-12-30 Thread Jeff Newmiller
I am not a user of this package, but I think you should read [1], particularly 
the README and system requirements. You may need to learn about compiling from 
source (.tar.gz) if you cannot find a recent precompiled package file (.zip).

[1] https://cran.r-project.org/web/packages/RQuantLib/index.html
-- 
Sent from my phone. Please excuse my brevity.

On December 30, 2017 8:08:55 AM PST, rsherry8  wrote:
>Jeff,
>
>I tired another mirror but that did not work. I tired the following two
>
>commands:
>
> > ap <- available.packages()
> > View(ap)
>
>The output of the View command showed numerous packages available but
>it 
>did not show RQuantLib.
>
>Bob Sherry
>
>On 12/30/2017 8:48 AM, Jeff Newmiller wrote:
>> Sometimes that message appears when using a CRAN mirror that is not
>up-to-date or has communication problems. Might also try another
>mirror.
>> -- Sent from my phone. Please excuse my brevity. On December 30, 2017
>
>> 5:25:15 AM PST, Michael Dewey  wrote:
>>> >Dear Bob
>>> >
>>> >In fact the current release is 3.4.3 I can think of no reason why
>that
>>> >should matter here but it might be worth trying to upgrade to it.
>>> >
>>> >Michael
>>> >
>>> >On 29/12/2017 18:31, rsherry8 wrote:
 >>Joshua,
 >>
 >>Thanks for the response. When you said at least version 3.4.0, I
 >>upgraded to 3.4.2 which I believe is the current version. Now, I
 >>attempted to install the package RQuantLib but it did not work.
>Here
>>> >is
 >>what I got:
 >>
 >>  > install.packages("RQuantLib")
 >>Installing package into
>‘C:/Users/rsher/Documents/R/win-library/3.4’
 >>(as ‘lib’ is unspecified)
 >>Warning message:
 >>package ‘RQuantLib’ is not available (for R version 3.4.2)
 >>
 >>
 >>Please help.
 >>Thanks,
 >>Bob Sherry
 >>
 >>On 12/28/2017 10:28 PM, Joshua Ulrich wrote:
> >>>On Thu, Dec 28, 2017 at 6:02 PM, rsherry8
>>> >wrote:
>> I have recently installed R on my new computer. I also want
>to
>> install the
>> package RQuantLib. So I run the following command and get the
>>> >following
>> output:
>> 
>>> >   install.packages("RQuantLib")
>> Installing package into
>>> >‘C:/Users/rsher/Documents/R/win-library/3.2’
>> (as ‘lib’ is unspecified)
>> --- Please select a CRAN mirror for use in this session ---
>> Warning message:
>> package ‘RQuantLib’ is not available (for R version 3.2.4
>Revised)
>> 
>> The package did not install. Am I doing something wrong. Is
>the
>>> >package
>> going to be updated for the latest version of R?
>> 
> >>>Windows binary packages are only built for the most current
>(major)
> >>>version of R.  You need to upgrade to at least R-3.4.0, or you
>will
> >>>have to install RQuantLib (and therefore QuantLib itself) from
>>> >source.
> >>>
>> Thanks,
>> Bob
>> 
>> __
>> R-help@r-project.org  mailing list -- To UNSUBSCRIBE and
>more, see
>> 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.
> >>>
> >>>
 >>
 >>__
 >>R-help@r-project.org  mailing list -- To UNSUBSCRIBE and more,
>see
 >>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.
>>> >
>>> >-- 
>>> >Michael
>>> >http://www.dewey.myzen.co.uk/home.html
>>> >
>>> >__
>>> >R-help@r-project.org  mailing list -- To UNSUBSCRIBE and more, see
>>> >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.

__
R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see
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.

Re: [R] RQuantLib

2017-12-30 Thread rsherry8
Jeff,

I tired another mirror but that did not work. I tired the following two 
commands:

 > ap <- available.packages()
 > View(ap)

The output of the View command showed numerous packages available but it 
did not show RQuantLib.

Bob Sherry

On 12/30/2017 8:48 AM, Jeff Newmiller wrote:
> Sometimes that message appears when using a CRAN mirror that is not 
> up-to-date or has communication problems. Might also try another mirror.
> -- Sent from my phone. Please excuse my brevity. On December 30, 2017 
> 5:25:15 AM PST, Michael Dewey  wrote:
>> >Dear Bob
>> >
>> >In fact the current release is 3.4.3 I can think of no reason why that
>> >should matter here but it might be worth trying to upgrade to it.
>> >
>> >Michael
>> >
>> >On 29/12/2017 18:31, rsherry8 wrote:
>>> >>Joshua,
>>> >>
>>> >>Thanks for the response. When you said at least version 3.4.0, I
>>> >>upgraded to 3.4.2 which I believe is the current version. Now, I
>>> >>attempted to install the package RQuantLib but it did not work. Here
>> >is
>>> >>what I got:
>>> >>
>>> >>  > install.packages("RQuantLib")
>>> >>Installing package into ‘C:/Users/rsher/Documents/R/win-library/3.4’
>>> >>(as ‘lib’ is unspecified)
>>> >>Warning message:
>>> >>package ‘RQuantLib’ is not available (for R version 3.4.2)
>>> >>
>>> >>
>>> >>Please help.
>>> >>Thanks,
>>> >>Bob Sherry
>>> >>
>>> >>On 12/28/2017 10:28 PM, Joshua Ulrich wrote:
 >>>On Thu, Dec 28, 2017 at 6:02 PM, rsherry8
>> >wrote:
> I have recently installed R on my new computer. I also want to
> install the
> package RQuantLib. So I run the following command and get the
>> >following
> output:
> 
>> >   install.packages("RQuantLib")
> Installing package into
>> >‘C:/Users/rsher/Documents/R/win-library/3.2’
> (as ‘lib’ is unspecified)
> --- Please select a CRAN mirror for use in this session ---
> Warning message:
> package ‘RQuantLib’ is not available (for R version 3.2.4 Revised)
> 
> The package did not install. Am I doing something wrong. Is the
>> >package
> going to be updated for the latest version of R?
> 
 >>>Windows binary packages are only built for the most current (major)
 >>>version of R.  You need to upgrade to at least R-3.4.0, or you will
 >>>have to install RQuantLib (and therefore QuantLib itself) from
>> >source.
 >>>
> Thanks,
> Bob
> 
> __
> R-help@r-project.org  mailing list -- To UNSUBSCRIBE and more, see
> 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.
 >>>
 >>>
>>> >>
>>> >>__
>>> >>R-help@r-project.org  mailing list -- To UNSUBSCRIBE and more, see
>>> >>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.
>> >
>> >-- 
>> >Michael
>> >http://www.dewey.myzen.co.uk/home.html
>> >
>> >__
>> >R-help@r-project.org  mailing list -- To UNSUBSCRIBE and more, see
>> >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@r-project.org mailing list -- To UNSUBSCRIBE and more, see
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.

Re: [R] RQuantLib

2017-12-30 Thread rsherry8
OA,

Thanks for the response. I downloaded the file RQuantLib_0.4.4.tar.gz 
into a directory c:\r.zip on my Windows machine. I then ran the 
following command and I received the following output:

 > install.packages("RQuantLib", lib="/r.zip/")
Warning message:
package ‘RQuantLib’ is not available (for R version 3.4.3)

I did not unpack the .gz file. Should I have?

Please comment.
Bob Sherry

On 12/30/2017 2:24 AM, Orvalho Augusto wrote:
> Hi Bob,
>
> I don't know what is the cause of your trouble but try this:
> 1. Download the zip of package.
>
> 2. And install it from local zip files. This you find on the Packages 
> menu.
>
> Hope it helps
> OA
>
>
> On Fri, Dec 29, 2017 at 10:31 AM, rsherry8  > wrote:
>
> Joshua,
>
> Thanks for the response. When you said at least version 3.4.0, I
> upgraded to 3.4.2 which I believe is the current version. Now, I
> attempted to install the package RQuantLib but it did not work.
> Here is what I got:
>
> > install.packages("RQuantLib")
> Installing package into ‘C:/Users/rsher/Documents/R/win-library/3.4’
> (as ‘lib’ is unspecified)
> Warning message:
> package ‘RQuantLib’ is not available (for R version 3.4.2)
>
>
> Please help.
> Thanks,
> Bob Sherry
>
>
> On 12/28/2017 10:28 PM, Joshua Ulrich wrote:
>
> On Thu, Dec 28, 2017 at 6:02 PM, rsherry8
> > wrote:
>
> I have recently installed R on my new computer. I also
> want to install the
> package RQuantLib. So I run the following command and get
> the following
> output:
>
>   install.packages("RQuantLib")
>
> Installing package into
> ‘C:/Users/rsher/Documents/R/win-library/3.2’
> (as ‘lib’ is unspecified)
> --- Please select a CRAN mirror for use in this session ---
> Warning message:
> package ‘RQuantLib’ is not available (for R version 3.2.4
> Revised)
>
> The package did not install. Am I doing something wrong.
> Is the package
> going to be updated for the latest version of R?
>
> Windows binary packages are only built for the most current
> (major)
> version of R.  You need to upgrade to at least R-3.4.0, or you
> will
> have to install RQuantLib (and therefore QuantLib itself) from
> source.
>
> Thanks,
> Bob
>
> __
> R-help@r-project.org  mailing
> list -- To UNSUBSCRIBE and more, see
> 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.
>
>
>
>
> __
> R-help@r-project.org  mailing list --
> To UNSUBSCRIBE and more, see
> 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@r-project.org mailing list -- To UNSUBSCRIBE and more, see
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.

Re: [R] RQuantLib

2017-12-30 Thread Jeff Newmiller
Sometimes that message appears when using a CRAN mirror that is not up-to-date 
or has communication problems. Might also try another mirror.
-- 
Sent from my phone. Please excuse my brevity.

On December 30, 2017 5:25:15 AM PST, Michael Dewey  
wrote:
>Dear Bob
>
>In fact the current release is 3.4.3 I can think of no reason why that 
>should matter here but it might be worth trying to upgrade to it.
>
>Michael
>
>On 29/12/2017 18:31, rsherry8 wrote:
>> Joshua,
>> 
>> Thanks for the response. When you said at least version 3.4.0, I 
>> upgraded to 3.4.2 which I believe is the current version. Now, I 
>> attempted to install the package RQuantLib but it did not work. Here
>is 
>> what I got:
>> 
>>  > install.packages("RQuantLib")
>> Installing package into ‘C:/Users/rsher/Documents/R/win-library/3.4’
>> (as ‘lib’ is unspecified)
>> Warning message:
>> package ‘RQuantLib’ is not available (for R version 3.4.2)
>> 
>> 
>> Please help.
>> Thanks,
>> Bob Sherry
>> 
>> On 12/28/2017 10:28 PM, Joshua Ulrich wrote:
>>> On Thu, Dec 28, 2017 at 6:02 PM, rsherry8 
>wrote:
 I have recently installed R on my new computer. I also want to 
 install the
 package RQuantLib. So I run the following command and get the
>following
 output:

>   install.packages("RQuantLib")
 Installing package into
>‘C:/Users/rsher/Documents/R/win-library/3.2’
 (as ‘lib’ is unspecified)
 --- Please select a CRAN mirror for use in this session ---
 Warning message:
 package ‘RQuantLib’ is not available (for R version 3.2.4 Revised)

 The package did not install. Am I doing something wrong. Is the
>package
 going to be updated for the latest version of R?

>>> Windows binary packages are only built for the most current (major)
>>> version of R.  You need to upgrade to at least R-3.4.0, or you will
>>> have to install RQuantLib (and therefore QuantLib itself) from
>source.
>>>
 Thanks,
 Bob

 __
 R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see
 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.
>>>
>>>
>> 
>> __
>> R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see
>> 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.
>
>-- 
>Michael
>http://www.dewey.myzen.co.uk/home.html
>
>__
>R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see
>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.

__
R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see
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.

Re: [R] RQuantLib

2017-12-30 Thread Michael Dewey

Dear Bob

In fact the current release is 3.4.3 I can think of no reason why that 
should matter here but it might be worth trying to upgrade to it.


Michael

On 29/12/2017 18:31, rsherry8 wrote:

Joshua,

Thanks for the response. When you said at least version 3.4.0, I 
upgraded to 3.4.2 which I believe is the current version. Now, I 
attempted to install the package RQuantLib but it did not work. Here is 
what I got:


 > install.packages("RQuantLib")
Installing package into ‘C:/Users/rsher/Documents/R/win-library/3.4’
(as ‘lib’ is unspecified)
Warning message:
package ‘RQuantLib’ is not available (for R version 3.4.2)


Please help.
Thanks,
Bob Sherry

On 12/28/2017 10:28 PM, Joshua Ulrich wrote:

On Thu, Dec 28, 2017 at 6:02 PM, rsherry8  wrote:
I have recently installed R on my new computer. I also want to 
install the

package RQuantLib. So I run the following command and get the following
output:


  install.packages("RQuantLib")

Installing package into ‘C:/Users/rsher/Documents/R/win-library/3.2’
(as ‘lib’ is unspecified)
--- Please select a CRAN mirror for use in this session ---
Warning message:
package ‘RQuantLib’ is not available (for R version 3.2.4 Revised)

The package did not install. Am I doing something wrong. Is the package
going to be updated for the latest version of R?


Windows binary packages are only built for the most current (major)
version of R.  You need to upgrade to at least R-3.4.0, or you will
have to install RQuantLib (and therefore QuantLib itself) from source.


Thanks,
Bob

__
R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see
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.





__
R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see
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.


--
Michael
http://www.dewey.myzen.co.uk/home.html

__
R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see
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.