Installing an Archived Package

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
13 messages Options
Reply | Threaded
Open this post in threaded view
|

Installing an Archived Package

evguenia
Hello,

I am having difficulty installing the most recent compatible version of the “polycor" package (0.7-8), for R 3.2.1 on my Mac. Here is the package source page: https://cran.r-project.org/src/contrib/Archive/polycor/ <https://cran.r-project.org/src/contrib/Archive/polycor/>.

This version of R is necessary for the R Essentials for the IBM Statistical Package for Social Sciences (SPSS) extension. I found this thread on the problem (http://r.789695.n4.nabble.com/Installing-polycor-package-td4726101.html <http://r.789695.n4.nabble.com/Installing-polycor-package-td4726101.html>) but it does not offer much help as my SPSS version will not recognize the most recent versions of R.

The polycor package is not available in the repository of R 3.2.1. Here is the code I tried to install the package from the archive and the errors I received:

> install.packages("/polycor_0.7-8.tar", repos=NULL, type="source")
Warning: invalid package ‘/polycor_0.7-8.tar’
Error: ERROR: no packages specified
Warning message:
In install.packages("/polycor_0.7-8.tar", repos = NULL, type = "source") :
  installation of package ‘/polycor_0.7-8.tar’ had non-zero exit status
> install.packages("https://cran.r-project.org/src/contrib/Archive/polycor/polycor_0.7-8.tar.gz", repos=NULL, type="source")
Error in download.file(p, destfile, method, mode = "wb", ...) :
  unsupported URL scheme

Any ideas for other alternatives would be greatly appreciated. Thank you for your time!

Best,
Evguenia
        [[alternative HTML version deleted]]

______________________________________________
[hidden email] 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.
Reply | Threaded
Open this post in threaded view
|

Re: Installing an Archived Package

Michael Dewey-3
Dear Evguenia

What happens if you manually download the version you want and run
install.packages() on that file? Your first attempt is on a .tar file
not on the tar.gz file in the archive, not sure if that makes a difference.

Michael

On 16/05/2018 16:24, Evguenia Ignatova wrote:

> Hello,
>
> I am having difficulty installing the most recent compatible version of the “polycor" package (0.7-8), for R 3.2.1 on my Mac. Here is the package source page: https://cran.r-project.org/src/contrib/Archive/polycor/ <https://cran.r-project.org/src/contrib/Archive/polycor/>.
>
> This version of R is necessary for the R Essentials for the IBM Statistical Package for Social Sciences (SPSS) extension. I found this thread on the problem (http://r.789695.n4.nabble.com/Installing-polycor-package-td4726101.html <http://r.789695.n4.nabble.com/Installing-polycor-package-td4726101.html>) but it does not offer much help as my SPSS version will not recognize the most recent versions of R.
>
> The polycor package is not available in the repository of R 3.2.1. Here is the code I tried to install the package from the archive and the errors I received:
>
>> install.packages("/polycor_0.7-8.tar", repos=NULL, type="source")
> Warning: invalid package ‘/polycor_0.7-8.tar’
> Error: ERROR: no packages specified
> Warning message:
> In install.packages("/polycor_0.7-8.tar", repos = NULL, type = "source") :
>    installation of package ‘/polycor_0.7-8.tar’ had non-zero exit status
>> install.packages("https://cran.r-project.org/src/contrib/Archive/polycor/polycor_0.7-8.tar.gz", repos=NULL, type="source")
> Error in download.file(p, destfile, method, mode = "wb", ...) :
>    unsupported URL scheme
>
> Any ideas for other alternatives would be greatly appreciated. Thank you for your time!
>
> Best,
> Evguenia
> [[alternative HTML version deleted]]
>
> ______________________________________________
> [hidden email] 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

______________________________________________
[hidden email] 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.
Reply | Threaded
Open this post in threaded view
|

Re: Installing an Archived Package

Duncan Murdoch-2
In reply to this post by evguenia
On 16/05/2018 11:24 AM, Evguenia Ignatova wrote:
> Hello,
>
> I am having difficulty installing the most recent compatible version of the “polycor" package (0.7-8), for R 3.2.1 on my Mac. Here is the package source page: https://cran.r-project.org/src/contrib/Archive/polycor/ <https://cran.r-project.org/src/contrib/Archive/polycor/>.
>
> This version of R is necessary for the R Essentials for the IBM Statistical Package for Social Sciences (SPSS) extension. I found this thread on the problem (http://r.789695.n4.nabble.com/Installing-polycor-package-td4726101.html <http://r.789695.n4.nabble.com/Installing-polycor-package-td4726101.html>) but it does not offer much help as my SPSS version will not recognize the most recent versions of R.

I'd suggest contacting IBM for support.

>
> The polycor package is not available in the repository of R 3.2.1. Here is the code I tried to install the package from the archive and the errors I received:
>
>> install.packages("/polycor_0.7-8.tar", repos=NULL, type="source")
> Warning: invalid package ‘/polycor_0.7-8.tar’

As Michael said, you shouldn't unpack the tar.gz file.

Duncan Murdoch

> Error: ERROR: no packages specified
> Warning message:
> In install.packages("/polycor_0.7-8.tar", repos = NULL, type = "source") :
>    installation of package ‘/polycor_0.7-8.tar’ had non-zero exit status
>> install.packages("https://cran.r-project.org/src/contrib/Archive/polycor/polycor_0.7-8.tar.gz", repos=NULL, type="source")
> Error in download.file(p, destfile, method, mode = "wb", ...) :
>    unsupported URL scheme
>
> Any ideas for other alternatives would be greatly appreciated. Thank you for your time!
>
> Best,
> Evguenia
> [[alternative HTML version deleted]]
>
> ______________________________________________
> [hidden email] 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.
>

______________________________________________
[hidden email] 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.
Reply | Threaded
Open this post in threaded view
|

Re: Installing an Archived Package

evguenia
Hello Michael and Duncan,

Thank you for your pointers. The file downloaded without the “gz” extension to my R working directory folder as a “tar” file. I did not unpack the file. I tried renaming the file and running the code with “gz” added - please see below.

> install.packages("/polycor_0.7-8.tar.gz", repos=NULL, type="source")
Warning: invalid package ‘/polycor_0.7-8.tar.gz’
Error: ERROR: no packages specified
Warning message:
In install.packages("/polycor_0.7-8.tar.gz", repos = NULL, type = "source") :
  installation of package ‘/polycor_0.7-8.tar.gz’ had non-zero exit status

IBM support is pretty much useless as they do not offer support to students (I am a graduate student) and redirect me to the forums when I call them. I posted in their support forum once and no one ever responds.

However, based on the SPSS add-on instructions, it is clear that I need a specific version of R. I do not logically see another alternative to installing the package for this version of R. I am very confused as to why the standard procedures for installing an R package are not working for the archived version of this package.

Any other suggestions?

Thanks again,
Evguenia


> On May 16, 2018, at 12:33 PM, Duncan Murdoch <[hidden email]> wrote:
>
> On 16/05/2018 11:24 AM, Evguenia Ignatova wrote:
>> Hello,
>> I am having difficulty installing the most recent compatible version of the “polycor" package (0.7-8), for R 3.2.1 on my Mac. Here is the package source page: https://cran.r-project.org/src/contrib/Archive/polycor/ <https://cran.r-project.org/src/contrib/Archive/polycor/>.
>> This version of R is necessary for the R Essentials for the IBM Statistical Package for Social Sciences (SPSS) extension. I found this thread on the problem (http://r.789695.n4.nabble.com/Installing-polycor-package-td4726101.html <http://r.789695.n4.nabble.com/Installing-polycor-package-td4726101.html>) but it does not offer much help as my SPSS version will not recognize the most recent versions of R.
>
> I'd suggest contacting IBM for support.
>
>> The polycor package is not available in the repository of R 3.2.1. Here is the code I tried to install the package from the archive and the errors I received:
>>> install.packages("/polycor_0.7-8.tar", repos=NULL, type="source")
>> Warning: invalid package ‘/polycor_0.7-8.tar’
>
> As Michael said, you shouldn't unpack the tar.gz file.
>
> Duncan Murdoch
>
>> Error: ERROR: no packages specified
>> Warning message:
>> In install.packages("/polycor_0.7-8.tar", repos = NULL, type = "source") :
>>   installation of package ‘/polycor_0.7-8.tar’ had non-zero exit status
>>> install.packages("https://cran.r-project.org/src/contrib/Archive/polycor/polycor_0.7-8.tar.gz", repos=NULL, type="source")
>> Error in download.file(p, destfile, method, mode = "wb", ...) :
>>   unsupported URL scheme
>> Any ideas for other alternatives would be greatly appreciated. Thank you for your time!
>> Best,
>> Evguenia
>> [[alternative HTML version deleted]]
>> ______________________________________________
>> [hidden email] 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.
>

On May 16, 2018, at 12:29 PM, Michael Dewey <[hidden email]> wrote:

Dear Evguenia

What happens if you manually download the version you want and run install.packages() on that file? Your first attempt is on a .tar file not on the tar.gz file in the archive, not sure if that makes a difference.

Michael

On 16/05/2018 16:24, Evguenia Ignatova wrote:

> Hello,
> I am having difficulty installing the most recent compatible version of the “polycor" package (0.7-8), for R 3.2.1 on my Mac. Here is the package source page: https://cran.r-project.org/src/contrib/Archive/polycor/ <https://cran.r-project.org/src/contrib/Archive/polycor/>.
> This version of R is necessary for the R Essentials for the IBM Statistical Package for Social Sciences (SPSS) extension. I found this thread on the problem (http://r.789695.n4.nabble.com/Installing-polycor-package-td4726101.html <http://r.789695.n4.nabble.com/Installing-polycor-package-td4726101.html>) but it does not offer much help as my SPSS version will not recognize the most recent versions of R.
> The polycor package is not available in the repository of R 3.2.1. Here is the code I tried to install the package from the archive and the errors I received:
>> install.packages("/polycor_0.7-8.tar", repos=NULL, type="source")
> Warning: invalid package ‘/polycor_0.7-8.tar’
> Error: ERROR: no packages specified
> Warning message:
> In install.packages("/polycor_0.7-8.tar", repos = NULL, type = "source") :
>   installation of package ‘/polycor_0.7-8.tar’ had non-zero exit status
>> install.packages("https://cran.r-project.org/src/contrib/Archive/polycor/polycor_0.7-8.tar.gz", repos=NULL, type="source")
> Error in download.file(p, destfile, method, mode = "wb", ...) :
>   unsupported URL scheme
> Any ideas for other alternatives would be greatly appreciated. Thank you for your time!
> Best,
> Evguenia
> [[alternative HTML version deleted]]
> ______________________________________________
> [hidden email] 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
______________________________________________
[hidden email] 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.
Reply | Threaded
Open this post in threaded view
|

Re: Installing an Archived Package

Michael Dewey-3
Dear Evguenia

In that case the program you are using to download is being helpful and
unzipping the archive for you. You could replace helpful with irritating
in that sentence. You need to try another downloader.

Michael

On 16/05/2018 18:11, Evguenia Ignatova wrote:

> Hello Michael and Duncan,
>
> Thank you for your pointers. The file downloaded without the “gz” extension to my R working directory folder as a “tar” file. I did not unpack the file. I tried renaming the file and running the code with “gz” added - please see below.
>
>> install.packages("/polycor_0.7-8.tar.gz", repos=NULL, type="source")
> Warning: invalid package ‘/polycor_0.7-8.tar.gz’
> Error: ERROR: no packages specified
> Warning message:
> In install.packages("/polycor_0.7-8.tar.gz", repos = NULL, type = "source") :
>    installation of package ‘/polycor_0.7-8.tar.gz’ had non-zero exit status
>
> IBM support is pretty much useless as they do not offer support to students (I am a graduate student) and redirect me to the forums when I call them. I posted in their support forum once and no one ever responds.
>
> However, based on the SPSS add-on instructions, it is clear that I need a specific version of R. I do not logically see another alternative to installing the package for this version of R. I am very confused as to why the standard procedures for installing an R package are not working for the archived version of this package.
>
> Any other suggestions?
>
> Thanks again,
> Evguenia
>
>
>> On May 16, 2018, at 12:33 PM, Duncan Murdoch <[hidden email]> wrote:
>>
>> On 16/05/2018 11:24 AM, Evguenia Ignatova wrote:
>>> Hello,
>>> I am having difficulty installing the most recent compatible version of the “polycor" package (0.7-8), for R 3.2.1 on my Mac. Here is the package source page: https://cran.r-project.org/src/contrib/Archive/polycor/ <https://cran.r-project.org/src/contrib/Archive/polycor/>.
>>> This version of R is necessary for the R Essentials for the IBM Statistical Package for Social Sciences (SPSS) extension. I found this thread on the problem (http://r.789695.n4.nabble.com/Installing-polycor-package-td4726101.html <http://r.789695.n4.nabble.com/Installing-polycor-package-td4726101.html>) but it does not offer much help as my SPSS version will not recognize the most recent versions of R.
>>
>> I'd suggest contacting IBM for support.
>>
>>> The polycor package is not available in the repository of R 3.2.1. Here is the code I tried to install the package from the archive and the errors I received:
>>>> install.packages("/polycor_0.7-8.tar", repos=NULL, type="source")
>>> Warning: invalid package ‘/polycor_0.7-8.tar’
>>
>> As Michael said, you shouldn't unpack the tar.gz file.
>>
>> Duncan Murdoch
>>
>>> Error: ERROR: no packages specified
>>> Warning message:
>>> In install.packages("/polycor_0.7-8.tar", repos = NULL, type = "source") :
>>>    installation of package ‘/polycor_0.7-8.tar’ had non-zero exit status
>>>> install.packages("https://cran.r-project.org/src/contrib/Archive/polycor/polycor_0.7-8.tar.gz", repos=NULL, type="source")
>>> Error in download.file(p, destfile, method, mode = "wb", ...) :
>>>    unsupported URL scheme
>>> Any ideas for other alternatives would be greatly appreciated. Thank you for your time!
>>> Best,
>>> Evguenia
>>> [[alternative HTML version deleted]]
>>> ______________________________________________
>>> [hidden email] 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.
>>
>
> On May 16, 2018, at 12:29 PM, Michael Dewey <[hidden email]> wrote:
>
> Dear Evguenia
>
> What happens if you manually download the version you want and run install.packages() on that file? Your first attempt is on a .tar file not on the tar.gz file in the archive, not sure if that makes a difference.
>
> Michael
>
> On 16/05/2018 16:24, Evguenia Ignatova wrote:
>> Hello,
>> I am having difficulty installing the most recent compatible version of the “polycor" package (0.7-8), for R 3.2.1 on my Mac. Here is the package source page: https://cran.r-project.org/src/contrib/Archive/polycor/ <https://cran.r-project.org/src/contrib/Archive/polycor/>.
>> This version of R is necessary for the R Essentials for the IBM Statistical Package for Social Sciences (SPSS) extension. I found this thread on the problem (http://r.789695.n4.nabble.com/Installing-polycor-package-td4726101.html <http://r.789695.n4.nabble.com/Installing-polycor-package-td4726101.html>) but it does not offer much help as my SPSS version will not recognize the most recent versions of R.
>> The polycor package is not available in the repository of R 3.2.1. Here is the code I tried to install the package from the archive and the errors I received:
>>> install.packages("/polycor_0.7-8.tar", repos=NULL, type="source")
>> Warning: invalid package ‘/polycor_0.7-8.tar’
>> Error: ERROR: no packages specified
>> Warning message:
>> In install.packages("/polycor_0.7-8.tar", repos = NULL, type = "source") :
>>    installation of package ‘/polycor_0.7-8.tar’ had non-zero exit status
>>> install.packages("https://cran.r-project.org/src/contrib/Archive/polycor/polycor_0.7-8.tar.gz", repos=NULL, type="source")
>> Error in download.file(p, destfile, method, mode = "wb", ...) :
>>    unsupported URL scheme
>> Any ideas for other alternatives would be greatly appreciated. Thank you for your time!
>> Best,
>> Evguenia
>> [[alternative HTML version deleted]]
>> ______________________________________________
>> [hidden email] 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

______________________________________________
[hidden email] 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.
Reply | Threaded
Open this post in threaded view
|

Re: Installing an Archived Package

R help mailing list-2
In reply to this post by evguenia
      install.packages("/polycor_0.7-8.tar.gz", repos=NULL, type="source")

The initial slash would be a problem - it means to find
poglycor_0.7.8.tar.gz in the root directory.
Remove the slash, find where the tar.gz file was put, and try using that
location.  Recall the destdir
setting you used in download.packages or use file.exists() and dir() to
help find it.

Bill Dunlap
TIBCO Software
wdunlap tibco.com

On Wed, May 16, 2018 at 10:11 AM, Evguenia Ignatova <[hidden email]>
wrote:

> Hello Michael and Duncan,
>
> Thank you for your pointers. The file downloaded without the “gz”
> extension to my R working directory folder as a “tar” file. I did not
> unpack the file. I tried renaming the file and running the code with “gz”
> added - please see below.
>
> > install.packages("/polycor_0.7-8.tar.gz", repos=NULL, type="source")
> Warning: invalid package ‘/polycor_0.7-8.tar.gz’
> Error: ERROR: no packages specified
> Warning message:
> In install.packages("/polycor_0.7-8.tar.gz", repos = NULL, type =
> "source") :
>   installation of package ‘/polycor_0.7-8.tar.gz’ had non-zero exit status
>
> IBM support is pretty much useless as they do not offer support to
> students (I am a graduate student) and redirect me to the forums when I
> call them. I posted in their support forum once and no one ever responds.
>
> However, based on the SPSS add-on instructions, it is clear that I need a
> specific version of R. I do not logically see another alternative to
> installing the package for this version of R. I am very confused as to why
> the standard procedures for installing an R package are not working for the
> archived version of this package.
>
> Any other suggestions?
>
> Thanks again,
> Evguenia
>
>
> > On May 16, 2018, at 12:33 PM, Duncan Murdoch <[hidden email]>
> wrote:
> >
> > On 16/05/2018 11:24 AM, Evguenia Ignatova wrote:
> >> Hello,
> >> I am having difficulty installing the most recent compatible version of
> the “polycor" package (0.7-8), for R 3.2.1 on my Mac. Here is the package
> source page: https://cran.r-project.org/src/contrib/Archive/polycor/ <
> https://cran.r-project.org/src/contrib/Archive/polycor/>.
> >> This version of R is necessary for the R Essentials for the IBM
> Statistical Package for Social Sciences (SPSS) extension. I found this
> thread on the problem (http://r.789695.n4.nabble.com/Installing-polycor-
> package-td4726101.html <http://r.789695.n4.nabble.com/Installing-polycor-
> package-td4726101.html>) but it does not offer much help as my SPSS
> version will not recognize the most recent versions of R.
> >
> > I'd suggest contacting IBM for support.
> >
> >> The polycor package is not available in the repository of R 3.2.1. Here
> is the code I tried to install the package from the archive and the errors
> I received:
> >>> install.packages("/polycor_0.7-8.tar", repos=NULL, type="source")
> >> Warning: invalid package ‘/polycor_0.7-8.tar’
> >
> > As Michael said, you shouldn't unpack the tar.gz file.
> >
> > Duncan Murdoch
> >
> >> Error: ERROR: no packages specified
> >> Warning message:
> >> In install.packages("/polycor_0.7-8.tar", repos = NULL, type =
> "source") :
> >>   installation of package ‘/polycor_0.7-8.tar’ had non-zero exit status
> >>> install.packages("https://cran.r-project.org/src/
> contrib/Archive/polycor/polycor_0.7-8.tar.gz", repos=NULL, type="source")
> >> Error in download.file(p, destfile, method, mode = "wb", ...) :
> >>   unsupported URL scheme
> >> Any ideas for other alternatives would be greatly appreciated. Thank
> you for your time!
> >> Best,
> >> Evguenia
> >>      [[alternative HTML version deleted]]
> >> ______________________________________________
> >> [hidden email] 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.
> >
>
> On May 16, 2018, at 12:29 PM, Michael Dewey <[hidden email]>
> wrote:
>
> Dear Evguenia
>
> What happens if you manually download the version you want and run
> install.packages() on that file? Your first attempt is on a .tar file not
> on the tar.gz file in the archive, not sure if that makes a difference.
>
> Michael
>
> On 16/05/2018 16:24, Evguenia Ignatova wrote:
> > Hello,
> > I am having difficulty installing the most recent compatible version of
> the “polycor" package (0.7-8), for R 3.2.1 on my Mac. Here is the package
> source page: https://cran.r-project.org/src/contrib/Archive/polycor/ <
> https://cran.r-project.org/src/contrib/Archive/polycor/>.
> > This version of R is necessary for the R Essentials for the IBM
> Statistical Package for Social Sciences (SPSS) extension. I found this
> thread on the problem (http://r.789695.n4.nabble.com/Installing-polycor-
> package-td4726101.html <http://r.789695.n4.nabble.com/Installing-polycor-
> package-td4726101.html>) but it does not offer much help as my SPSS
> version will not recognize the most recent versions of R.
> > The polycor package is not available in the repository of R 3.2.1. Here
> is the code I tried to install the package from the archive and the errors
> I received:
> >> install.packages("/polycor_0.7-8.tar", repos=NULL, type="source")
> > Warning: invalid package ‘/polycor_0.7-8.tar’
> > Error: ERROR: no packages specified
> > Warning message:
> > In install.packages("/polycor_0.7-8.tar", repos = NULL, type =
> "source") :
> >   installation of package ‘/polycor_0.7-8.tar’ had non-zero exit status
> >> install.packages("https://cran.r-project.org/src/
> contrib/Archive/polycor/polycor_0.7-8.tar.gz", repos=NULL, type="source")
> > Error in download.file(p, destfile, method, mode = "wb", ...) :
> >   unsupported URL scheme
> > Any ideas for other alternatives would be greatly appreciated. Thank you
> for your time!
> > Best,
> > Evguenia
> >       [[alternative HTML version deleted]]
> > ______________________________________________
> > [hidden email] 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
> ______________________________________________
> [hidden email] 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]]

______________________________________________
[hidden email] 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.
Reply | Threaded
Open this post in threaded view
|

Re: Installing an Archived Package

Rui Barradas
Hello,

I downloaded the file "polycor_0.7-8.tar.gz" from CRAN with Mozilla
Firefox and then ran

gzFile <- file.choose()
install.packages(gzFile, repos=NULL, type="source")

and it worked at the first try.

Hope this helps,

Rui Barradas

On 5/16/2018 6:26 PM, William Dunlap via R-help wrote:

>        install.packages("/polycor_0.7-8.tar.gz", repos=NULL, type="source")
>
> The initial slash would be a problem - it means to find
> poglycor_0.7.8.tar.gz in the root directory.
> Remove the slash, find where the tar.gz file was put, and try using that
> location.  Recall the destdir
> setting you used in download.packages or use file.exists() and dir() to
> help find it.
>
> Bill Dunlap
> TIBCO Software
> wdunlap tibco.com
>
> On Wed, May 16, 2018 at 10:11 AM, Evguenia Ignatova <[hidden email]>
> wrote:
>
>> Hello Michael and Duncan,
>>
>> Thank you for your pointers. The file downloaded without the “gz”
>> extension to my R working directory folder as a “tar” file. I did not
>> unpack the file. I tried renaming the file and running the code with “gz”
>> added - please see below.
>>
>>> install.packages("/polycor_0.7-8.tar.gz", repos=NULL, type="source")
>> Warning: invalid package ‘/polycor_0.7-8.tar.gz’
>> Error: ERROR: no packages specified
>> Warning message:
>> In install.packages("/polycor_0.7-8.tar.gz", repos = NULL, type =
>> "source") :
>>    installation of package ‘/polycor_0.7-8.tar.gz’ had non-zero exit status
>>
>> IBM support is pretty much useless as they do not offer support to
>> students (I am a graduate student) and redirect me to the forums when I
>> call them. I posted in their support forum once and no one ever responds.
>>
>> However, based on the SPSS add-on instructions, it is clear that I need a
>> specific version of R. I do not logically see another alternative to
>> installing the package for this version of R. I am very confused as to why
>> the standard procedures for installing an R package are not working for the
>> archived version of this package.
>>
>> Any other suggestions?
>>
>> Thanks again,
>> Evguenia
>>
>>
>>> On May 16, 2018, at 12:33 PM, Duncan Murdoch <[hidden email]>
>> wrote:
>>>
>>> On 16/05/2018 11:24 AM, Evguenia Ignatova wrote:
>>>> Hello,
>>>> I am having difficulty installing the most recent compatible version of
>> the “polycor" package (0.7-8), for R 3.2.1 on my Mac. Here is the package
>> source page: https://cran.r-project.org/src/contrib/Archive/polycor/ <
>> https://cran.r-project.org/src/contrib/Archive/polycor/>.
>>>> This version of R is necessary for the R Essentials for the IBM
>> Statistical Package for Social Sciences (SPSS) extension. I found this
>> thread on the problem (http://r.789695.n4.nabble.com/Installing-polycor-
>> package-td4726101.html <http://r.789695.n4.nabble.com/Installing-polycor-
>> package-td4726101.html>) but it does not offer much help as my SPSS
>> version will not recognize the most recent versions of R.
>>>
>>> I'd suggest contacting IBM for support.
>>>
>>>> The polycor package is not available in the repository of R 3.2.1. Here
>> is the code I tried to install the package from the archive and the errors
>> I received:
>>>>> install.packages("/polycor_0.7-8.tar", repos=NULL, type="source")
>>>> Warning: invalid package ‘/polycor_0.7-8.tar’
>>>
>>> As Michael said, you shouldn't unpack the tar.gz file.
>>>
>>> Duncan Murdoch
>>>
>>>> Error: ERROR: no packages specified
>>>> Warning message:
>>>> In install.packages("/polycor_0.7-8.tar", repos = NULL, type =
>> "source") :
>>>>    installation of package ‘/polycor_0.7-8.tar’ had non-zero exit status
>>>>> install.packages("https://cran.r-project.org/src/
>> contrib/Archive/polycor/polycor_0.7-8.tar.gz", repos=NULL, type="source")
>>>> Error in download.file(p, destfile, method, mode = "wb", ...) :
>>>>    unsupported URL scheme
>>>> Any ideas for other alternatives would be greatly appreciated. Thank
>> you for your time!
>>>> Best,
>>>> Evguenia
>>>>       [[alternative HTML version deleted]]
>>>> ______________________________________________
>>>> [hidden email] 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.
>>>
>>
>> On May 16, 2018, at 12:29 PM, Michael Dewey <[hidden email]>
>> wrote:
>>
>> Dear Evguenia
>>
>> What happens if you manually download the version you want and run
>> install.packages() on that file? Your first attempt is on a .tar file not
>> on the tar.gz file in the archive, not sure if that makes a difference.
>>
>> Michael
>>
>> On 16/05/2018 16:24, Evguenia Ignatova wrote:
>>> Hello,
>>> I am having difficulty installing the most recent compatible version of
>> the “polycor" package (0.7-8), for R 3.2.1 on my Mac. Here is the package
>> source page: https://cran.r-project.org/src/contrib/Archive/polycor/ <
>> https://cran.r-project.org/src/contrib/Archive/polycor/>.
>>> This version of R is necessary for the R Essentials for the IBM
>> Statistical Package for Social Sciences (SPSS) extension. I found this
>> thread on the problem (http://r.789695.n4.nabble.com/Installing-polycor-
>> package-td4726101.html <http://r.789695.n4.nabble.com/Installing-polycor-
>> package-td4726101.html>) but it does not offer much help as my SPSS
>> version will not recognize the most recent versions of R.
>>> The polycor package is not available in the repository of R 3.2.1. Here
>> is the code I tried to install the package from the archive and the errors
>> I received:
>>>> install.packages("/polycor_0.7-8.tar", repos=NULL, type="source")
>>> Warning: invalid package ‘/polycor_0.7-8.tar’
>>> Error: ERROR: no packages specified
>>> Warning message:
>>> In install.packages("/polycor_0.7-8.tar", repos = NULL, type =
>> "source") :
>>>    installation of package ‘/polycor_0.7-8.tar’ had non-zero exit status
>>>> install.packages("https://cran.r-project.org/src/
>> contrib/Archive/polycor/polycor_0.7-8.tar.gz", repos=NULL, type="source")
>>> Error in download.file(p, destfile, method, mode = "wb", ...) :
>>>    unsupported URL scheme
>>> Any ideas for other alternatives would be greatly appreciated. Thank you
>> for your time!
>>> Best,
>>> Evguenia
>>>        [[alternative HTML version deleted]]
>>> ______________________________________________
>>> [hidden email] 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
>> ______________________________________________
>> [hidden email] 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]]
>
> ______________________________________________
> [hidden email] 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.
>

______________________________________________
[hidden email] 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.
Reply | Threaded
Open this post in threaded view
|

Re: Installing an Archived Package

Richard M. Heiberger
In reply to this post by evguenia
You can tell Macintosh not to automatically unpack tar.gz files.

https://apple.stackexchange.com/questions/961/how-to-stop-safari-from-unzipping-files-after-download


On Wed, May 16, 2018 at 11:24 AM, Evguenia Ignatova
<[hidden email]> wrote:

> Hello,
>
> I am having difficulty installing the most recent compatible version of the “polycor" package (0.7-8), for R 3.2.1 on my Mac. Here is the package source page: https://cran.r-project.org/src/contrib/Archive/polycor/ <https://cran.r-project.org/src/contrib/Archive/polycor/>.
>
> This version of R is necessary for the R Essentials for the IBM Statistical Package for Social Sciences (SPSS) extension. I found this thread on the problem (http://r.789695.n4.nabble.com/Installing-polycor-package-td4726101.html <http://r.789695.n4.nabble.com/Installing-polycor-package-td4726101.html>) but it does not offer much help as my SPSS version will not recognize the most recent versions of R.
>
> The polycor package is not available in the repository of R 3.2.1. Here is the code I tried to install the package from the archive and the errors I received:
>
>> install.packages("/polycor_0.7-8.tar", repos=NULL, type="source")
> Warning: invalid package ‘/polycor_0.7-8.tar’
> Error: ERROR: no packages specified
> Warning message:
> In install.packages("/polycor_0.7-8.tar", repos = NULL, type = "source") :
>   installation of package ‘/polycor_0.7-8.tar’ had non-zero exit status
>> install.packages("https://cran.r-project.org/src/contrib/Archive/polycor/polycor_0.7-8.tar.gz", repos=NULL, type="source")
> Error in download.file(p, destfile, method, mode = "wb", ...) :
>   unsupported URL scheme
>
> Any ideas for other alternatives would be greatly appreciated. Thank you for your time!
>
> Best,
> Evguenia
>         [[alternative HTML version deleted]]
>
> ______________________________________________
> [hidden email] 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.

______________________________________________
[hidden email] 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.
Reply | Threaded
Open this post in threaded view
|

Re: Installing an Archived Package

evguenia
Hello again,

I did not expect the browser to automatically extract, so I changed the Safari setting and it downloaded as a “gz” file.

It is clear now that R is finding the package but I get a different error as follows:

> install.packages("polycor_0.7-8.tar.gz", repos=NULL, type="source")
ERROR: dependency ‘mvtnorm’ is not available for package ‘polycor’
* removing ‘/Library/Frameworks/R.framework/Versions/3.2/Resources/library/polycor’
Warning message:
In install.packages("polycor_0.7-8.tar.gz", repos = NULL, type = "source") :
  installation of package ‘polycor_0.7-8.tar.gz’ had non-zero exit status

I get the same error when I try Rui’s way of accessing the file.

Suggestions online are along the lines of installing the dependencies separately, but I am not sure how to go about separating the file into its dependencies?

Thank you so much!

Evguenia

> On May 16, 2018, at 1:58 PM, Richard M. Heiberger <[hidden email]> wrote:
>
> You can tell Macintosh not to automatically unpack tar.gz files.
>
> https://apple.stackexchange.com/questions/961/how-to-stop-safari-from-unzipping-files-after-download <https://apple.stackexchange.com/questions/961/how-to-stop-safari-from-unzipping-files-after-download>
>
>
> On Wed, May 16, 2018 at 11:24 AM, Evguenia Ignatova
> <[hidden email] <mailto:[hidden email]>> wrote:
>> Hello,
>>
>> I am having difficulty installing the most recent compatible version of the “polycor" package (0.7-8), for R 3.2.1 on my Mac. Here is the package source page: https://cran.r-project.org/src/contrib/Archive/polycor/ <https://cran.r-project.org/src/contrib/Archive/polycor/> <https://cran.r-project.org/src/contrib/Archive/polycor/ <https://cran.r-project.org/src/contrib/Archive/polycor/>>.
>>
>> This version of R is necessary for the R Essentials for the IBM Statistical Package for Social Sciences (SPSS) extension. I found this thread on the problem (http://r.789695.n4.nabble.com/Installing-polycor-package-td4726101.html <http://r.789695.n4.nabble.com/Installing-polycor-package-td4726101.html> <http://r.789695.n4.nabble.com/Installing-polycor-package-td4726101.html <http://r.789695.n4.nabble.com/Installing-polycor-package-td4726101.html>>) but it does not offer much help as my SPSS version will not recognize the most recent versions of R.
>>
>> The polycor package is not available in the repository of R 3.2.1. Here is the code I tried to install the package from the archive and the errors I received:
>>
>>> install.packages("/polycor_0.7-8.tar", repos=NULL, type="source")
>> Warning: invalid package ‘/polycor_0.7-8.tar’
>> Error: ERROR: no packages specified
>> Warning message:
>> In install.packages("/polycor_0.7-8.tar", repos = NULL, type = "source") :
>>  installation of package ‘/polycor_0.7-8.tar’ had non-zero exit status
>>> install.packages("https://cran.r-project.org/src/contrib/Archive/polycor/polycor_0.7-8.tar.gz", repos=NULL, type="source")
>> Error in download.file(p, destfile, method, mode = "wb", ...) :
>>  unsupported URL scheme
>>
>> Any ideas for other alternatives would be greatly appreciated. Thank you for your time!
>>
>> Best,
>> Evguenia
>>        [[alternative HTML version deleted]]
>>
>> ______________________________________________
>> [hidden email] <mailto:[hidden email]> mailing list -- To UNSUBSCRIBE and more, see
>> https://stat.ethz.ch/mailman/listinfo/r-help <https://stat.ethz.ch/mailman/listinfo/r-help>
>> PLEASE do read the posting guide http://www.R-project.org/posting-guide.html <http://www.r-project.org/posting-guide.html>
>> and provide commented, minimal, self-contained, reproducible code.


        [[alternative HTML version deleted]]

______________________________________________
[hidden email] 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.
Reply | Threaded
Open this post in threaded view
|

Re: Installing an Archived Package

Duncan Murdoch-2
On 16/05/2018 2:15 PM, Evguenia Ignatova wrote:
> Hello again,
>
> I did not expect the browser to automatically extract, so I changed the Safari setting and it downloaded as a “gz” file.
>
> It is clear now that R is finding the package but I get a different error as follows:
>
>> install.packages("polycor_0.7-8.tar.gz", repos=NULL, type="source")
> ERROR: dependency ‘mvtnorm’ is not available for package ‘polycor’
> * removing ‘/Library/Frameworks/R.framework/Versions/3.2/Resources/library/polycor’

You can run

install.packages("mvtnorm")

and it will be installed from CRAN.  It's unfortunate that
install.packages() doesn't do this automatically when you install a
tar.gz file, but that's the way it is.

Duncan Murdoch

> Warning message:
> In install.packages("polycor_0.7-8.tar.gz", repos = NULL, type = "source") :
>    installation of package ‘polycor_0.7-8.tar.gz’ had non-zero exit status
>
> I get the same error when I try Rui’s way of accessing the file.
>
> Suggestions online are along the lines of installing the dependencies separately, but I am not sure how to go about separating the file into its dependencies?
>
> Thank you so much!
>
> Evguenia
>
>> On May 16, 2018, at 1:58 PM, Richard M. Heiberger <[hidden email]> wrote:
>>
>> You can tell Macintosh not to automatically unpack tar.gz files.
>>
>> https://apple.stackexchange.com/questions/961/how-to-stop-safari-from-unzipping-files-after-download <https://apple.stackexchange.com/questions/961/how-to-stop-safari-from-unzipping-files-after-download>
>>
>>
>> On Wed, May 16, 2018 at 11:24 AM, Evguenia Ignatova
>> <[hidden email] <mailto:[hidden email]>> wrote:
>>> Hello,
>>>
>>> I am having difficulty installing the most recent compatible version of the “polycor" package (0.7-8), for R 3.2.1 on my Mac. Here is the package source page: https://cran.r-project.org/src/contrib/Archive/polycor/ <https://cran.r-project.org/src/contrib/Archive/polycor/> <https://cran.r-project.org/src/contrib/Archive/polycor/ <https://cran.r-project.org/src/contrib/Archive/polycor/>>.
>>>
>>> This version of R is necessary for the R Essentials for the IBM Statistical Package for Social Sciences (SPSS) extension. I found this thread on the problem (http://r.789695.n4.nabble.com/Installing-polycor-package-td4726101.html <http://r.789695.n4.nabble.com/Installing-polycor-package-td4726101.html> <http://r.789695.n4.nabble.com/Installing-polycor-package-td4726101.html <http://r.789695.n4.nabble.com/Installing-polycor-package-td4726101.html>>) but it does not offer much help as my SPSS version will not recognize the most recent versions of R.
>>>
>>> The polycor package is not available in the repository of R 3.2.1. Here is the code I tried to install the package from the archive and the errors I received:
>>>
>>>> install.packages("/polycor_0.7-8.tar", repos=NULL, type="source")
>>> Warning: invalid package ‘/polycor_0.7-8.tar’
>>> Error: ERROR: no packages specified
>>> Warning message:
>>> In install.packages("/polycor_0.7-8.tar", repos = NULL, type = "source") :
>>>   installation of package ‘/polycor_0.7-8.tar’ had non-zero exit status
>>>> install.packages("https://cran.r-project.org/src/contrib/Archive/polycor/polycor_0.7-8.tar.gz", repos=NULL, type="source")
>>> Error in download.file(p, destfile, method, mode = "wb", ...) :
>>>   unsupported URL scheme
>>>
>>> Any ideas for other alternatives would be greatly appreciated. Thank you for your time!
>>>
>>> Best,
>>> Evguenia
>>>         [[alternative HTML version deleted]]
>>>
>>> ______________________________________________
>>> [hidden email] <mailto:[hidden email]> mailing list -- To UNSUBSCRIBE and more, see
>>> https://stat.ethz.ch/mailman/listinfo/r-help <https://stat.ethz.ch/mailman/listinfo/r-help>
>>> PLEASE do read the posting guide http://www.R-project.org/posting-guide.html <http://www.r-project.org/posting-guide.html>
>>> and provide commented, minimal, self-contained, reproducible code.
>
>
> [[alternative HTML version deleted]]
>
> ______________________________________________
> [hidden email] 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.
>

______________________________________________
[hidden email] 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.
Reply | Threaded
Open this post in threaded view
|

Re: Installing an Archived Package

evguenia
Great to know! I installed mvtnorm and everything installed like a charm after. SPSS executed the package smoothly, too.

Thank you so much again for all your help - this really saved me!

All the best,
Evguenia

> On May 16, 2018, at 2:34 PM, Duncan Murdoch <[hidden email]> wrote:
>
> On 16/05/2018 2:15 PM, Evguenia Ignatova wrote:
>> Hello again,
>> I did not expect the browser to automatically extract, so I changed the Safari setting and it downloaded as a “gz” file.
>> It is clear now that R is finding the package but I get a different error as follows:
>>> install.packages("polycor_0.7-8.tar.gz", repos=NULL, type="source")
>> ERROR: dependency ‘mvtnorm’ is not available for package ‘polycor’
>> * removing ‘/Library/Frameworks/R.framework/Versions/3.2/Resources/library/polycor’
>
> You can run
>
> install.packages("mvtnorm")
>
> and it will be installed from CRAN.  It's unfortunate that install.packages() doesn't do this automatically when you install a tar.gz file, but that's the way it is.
>
> Duncan Murdoch
>
>> Warning message:
>> In install.packages("polycor_0.7-8.tar.gz", repos = NULL, type = "source") :
>>   installation of package ‘polycor_0.7-8.tar.gz’ had non-zero exit status
>> I get the same error when I try Rui’s way of accessing the file.
>> Suggestions online are along the lines of installing the dependencies separately, but I am not sure how to go about separating the file into its dependencies?
>> Thank you so much!
>> Evguenia
>>> On May 16, 2018, at 1:58 PM, Richard M. Heiberger <[hidden email]> wrote:
>>>
>>> You can tell Macintosh not to automatically unpack tar.gz files.
>>>
>>> https://apple.stackexchange.com/questions/961/how-to-stop-safari-from-unzipping-files-after-download <https://apple.stackexchange.com/questions/961/how-to-stop-safari-from-unzipping-files-after-download>
>>>
>>>
>>> On Wed, May 16, 2018 at 11:24 AM, Evguenia Ignatova
>>> <[hidden email] <mailto:[hidden email]>> wrote:
>>>> Hello,
>>>>
>>>> I am having difficulty installing the most recent compatible version of the “polycor" package (0.7-8), for R 3.2.1 on my Mac. Here is the package source page: https://cran.r-project.org/src/contrib/Archive/polycor/ <https://cran.r-project.org/src/contrib/Archive/polycor/> <https://cran.r-project.org/src/contrib/Archive/polycor/ <https://cran.r-project.org/src/contrib/Archive/polycor/>>.
>>>>
>>>> This version of R is necessary for the R Essentials for the IBM Statistical Package for Social Sciences (SPSS) extension. I found this thread on the problem (http://r.789695.n4.nabble.com/Installing-polycor-package-td4726101.html <http://r.789695.n4.nabble.com/Installing-polycor-package-td4726101.html> <http://r.789695.n4.nabble.com/Installing-polycor-package-td4726101.html <http://r.789695.n4.nabble.com/Installing-polycor-package-td4726101.html>>) but it does not offer much help as my SPSS version will not recognize the most recent versions of R.
>>>>
>>>> The polycor package is not available in the repository of R 3.2.1. Here is the code I tried to install the package from the archive and the errors I received:
>>>>
>>>>> install.packages("/polycor_0.7-8.tar", repos=NULL, type="source")
>>>> Warning: invalid package ‘/polycor_0.7-8.tar’
>>>> Error: ERROR: no packages specified
>>>> Warning message:
>>>> In install.packages("/polycor_0.7-8.tar", repos = NULL, type = "source") :
>>>>  installation of package ‘/polycor_0.7-8.tar’ had non-zero exit status
>>>>> install.packages("https://cran.r-project.org/src/contrib/Archive/polycor/polycor_0.7-8.tar.gz", repos=NULL, type="source")
>>>> Error in download.file(p, destfile, method, mode = "wb", ...) :
>>>>  unsupported URL scheme
>>>>
>>>> Any ideas for other alternatives would be greatly appreciated. Thank you for your time!
>>>>
>>>> Best,
>>>> Evguenia
>>>>        [[alternative HTML version deleted]]
>>>>
>>>> ______________________________________________
>>>> [hidden email] <mailto:[hidden email]> mailing list -- To UNSUBSCRIBE and more, see
>>>> https://stat.ethz.ch/mailman/listinfo/r-help <https://stat.ethz.ch/mailman/listinfo/r-help>
>>>> PLEASE do read the posting guide http://www.R-project.org/posting-guide.html <http://www.r-project.org/posting-guide.html>
>>>> and provide commented, minimal, self-contained, reproducible code.
>> [[alternative HTML version deleted]]
>> ______________________________________________
>> [hidden email] 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.
>

______________________________________________
[hidden email] 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.
Reply | Threaded
Open this post in threaded view
|

Re: Installing an Archived Package

David Winsemius
In reply to this post by evguenia

> On May 16, 2018, at 2:15 PM, Evguenia Ignatova <[hidden email]> wrote:
>
> Hello again,
>
> I did not expect the browser to automatically extract, so I changed the Safari setting and it downloaded as a “gz” file.
>
> It is clear now that R is finding the package but I get a different error as follows:
>
>> install.packages("polycor_0.7-8.tar.gz", repos=NULL, type="source")
> ERROR: dependency ‘mvtnorm’ is not available for package ‘polycor’

Look at the CRAN page for polycor.

https://cran.r-project.org/web/packages/polycor/index.html

 It lists the packages that it need functions from under the Line starting with: Imports from:

Install all those packages (and any non-base dependencies they might have obviously need to be installed first), then install `polycor`. It's possible thay you may also need the Xcode and other development tools also from the same era, since mvtnorm _does_ require compilation. That might require some digging through Apple's archives.  You probably will _not_ want to update your MacOS to either Sierra or High Sierra. I _think_ that El Capitan would still be able to run R 3.2.1 but I'm not sure. Subsequent problems should be referred to the R-SIG-mac mailing list, and you should read the Posting Guide and set your mail client (probably Mail.app) so that it sends pain text.
l
It really does seem that IBM ought to maintain a mirror of CRAN with binaries from the distant past era when R 3.2 was the current version.

Best of luck, but I have my doubts about whether this will be feasible.


> * removing ‘/Library/Frameworks/R.framework/Versions/3.2/Resources/library/polycor’
> Warning message:
> In install.packages("polycor_0.7-8.tar.gz", repos = NULL, type = "source") :
>  installation of package ‘polycor_0.7-8.tar.gz’ had non-zero exit status
>
> I get the same error when I try Rui’s way of accessing the file.
>
> Suggestions online are along the lines of installing the dependencies separately, but I am not sure how to go about separating the file into its dependencies?

You don't "separate the file". You look up and install dependencies first.

--
David.

>
> Thank you so much!
>
> Evguenia
>
>> On May 16, 2018, at 1:58 PM, Richard M. Heiberger <[hidden email]> wrote:
>>
>> You can tell Macintosh not to automatically unpack tar.gz files.
>>
>> https://apple.stackexchange.com/questions/961/how-to-stop-safari-from-unzipping-files-after-download <https://apple.stackexchange.com/questions/961/how-to-stop-safari-from-unzipping-files-after-download>
>>
>>
>> On Wed, May 16, 2018 at 11:24 AM, Evguenia Ignatova
>> <[hidden email] <mailto:[hidden email]>> wrote:
>>> Hello,
>>>
>>> I am having difficulty installing the most recent compatible version of the “polycor" package (0.7-8), for R 3.2.1 on my Mac. Here is the package source page: https://cran.r-project.org/src/contrib/Archive/polycor/ <https://cran.r-project.org/src/contrib/Archive/polycor/> <https://cran.r-project.org/src/contrib/Archive/polycor/ <https://cran.r-project.org/src/contrib/Archive/polycor/>>.
>>>
>>> This version of R is necessary for the R Essentials for the IBM Statistical Package for Social Sciences (SPSS) extension. I found this thread on the problem (http://r.789695.n4.nabble.com/Installing-polycor-package-td4726101.html <http://r.789695.n4.nabble.com/Installing-polycor-package-td4726101.html> <http://r.789695.n4.nabble.com/Installing-polycor-package-td4726101.html <http://r.789695.n4.nabble.com/Installing-polycor-package-td4726101.html>>) but it does not offer much help as my SPSS version will not recognize the most recent versions of R.
>>>
>>> The polycor package is not available in the repository of R 3.2.1. Here is the code I tried to install the package from the archive and the errors I received:
>>>
>>>> install.packages("/polycor_0.7-8.tar", repos=NULL, type="source")
>>> Warning: invalid package ‘/polycor_0.7-8.tar’
>>> Error: ERROR: no packages specified
>>> Warning message:
>>> In install.packages("/polycor_0.7-8.tar", repos = NULL, type = "source") :
>>> installation of package ‘/polycor_0.7-8.tar’ had non-zero exit status
>>>> install.packages("https://cran.r-project.org/src/contrib/Archive/polycor/polycor_0.7-8.tar.gz", repos=NULL, type="source")
>>> Error in download.file(p, destfile, method, mode = "wb", ...) :
>>> unsupported URL scheme
>>>
>>> Any ideas for other alternatives would be greatly appreciated. Thank you for your time!
>>>
>>> Best,
>>> Evguenia
>>>       [[alternative HTML version deleted]]
>>>
>>> ______________________________________________
>>> [hidden email] <mailto:[hidden email]> mailing list -- To UNSUBSCRIBE and more, see
>>> https://stat.ethz.ch/mailman/listinfo/r-help <https://stat.ethz.ch/mailman/listinfo/r-help>
>>> PLEASE do read the posting guide http://www.R-project.org/posting-guide.html <http://www.r-project.org/posting-guide.html>
>>> and provide commented, minimal, self-contained, reproducible code.
>
>
> [[alternative HTML version deleted]]
>
> ______________________________________________
> [hidden email] 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.

______________________________________________
[hidden email] 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.
Reply | Threaded
Open this post in threaded view
|

Re: Installing an Archived Package

evguenia
Excellent - I will know where to look for the required packages next time. I actually was able to install everything successfully in Sierra in the end, interestingly enough.

Found the plain text option and will definitely post to the Mac-specific mailing list when appropriate.

Thank you,
Evguenia

> On May 16, 2018, at 4:07 PM, David Winsemius <[hidden email]> wrote:
>
>
>> On May 16, 2018, at 2:15 PM, Evguenia Ignatova <[hidden email]> wrote:
>>
>> Hello again,
>>
>> I did not expect the browser to automatically extract, so I changed the Safari setting and it downloaded as a “gz” file.
>>
>> It is clear now that R is finding the package but I get a different error as follows:
>>
>>> install.packages("polycor_0.7-8.tar.gz", repos=NULL, type="source")
>> ERROR: dependency ‘mvtnorm’ is not available for package ‘polycor’
>
> Look at the CRAN page for polycor.
>
> https://cran.r-project.org/web/packages/polycor/index.html
>
> It lists the packages that it need functions from under the Line starting with: Imports from:
>
> Install all those packages (and any non-base dependencies they might have obviously need to be installed first), then install `polycor`. It's possible thay you may also need the Xcode and other development tools also from the same era, since mvtnorm _does_ require compilation. That might require some digging through Apple's archives.  You probably will _not_ want to update your MacOS to either Sierra or High Sierra. I _think_ that El Capitan would still be able to run R 3.2.1 but I'm not sure. Subsequent problems should be referred to the R-SIG-mac mailing list, and you should read the Posting Guide and set your mail client (probably Mail.app) so that it sends pain text.
> l
> It really does seem that IBM ought to maintain a mirror of CRAN with binaries from the distant past era when R 3.2 was the current version.
>
> Best of luck, but I have my doubts about whether this will be feasible.
>
>
>> * removing ‘/Library/Frameworks/R.framework/Versions/3.2/Resources/library/polycor’
>> Warning message:
>> In install.packages("polycor_0.7-8.tar.gz", repos = NULL, type = "source") :
>> installation of package ‘polycor_0.7-8.tar.gz’ had non-zero exit status
>>
>> I get the same error when I try Rui’s way of accessing the file.
>>
>> Suggestions online are along the lines of installing the dependencies separately, but I am not sure how to go about separating the file into its dependencies?
>
> You don't "separate the file". You look up and install dependencies first.
>
> --
> David.
>>
>> Thank you so much!
>>
>> Evguenia
>>
>>> On May 16, 2018, at 1:58 PM, Richard M. Heiberger <[hidden email]> wrote:
>>>
>>> You can tell Macintosh not to automatically unpack tar.gz files.
>>>
>>> https://apple.stackexchange.com/questions/961/how-to-stop-safari-from-unzipping-files-after-download <https://apple.stackexchange.com/questions/961/how-to-stop-safari-from-unzipping-files-after-download>
>>>
>>>
>>> On Wed, May 16, 2018 at 11:24 AM, Evguenia Ignatova
>>> <[hidden email] <mailto:[hidden email]>> wrote:
>>>> Hello,
>>>>
>>>> I am having difficulty installing the most recent compatible version of the “polycor" package (0.7-8), for R 3.2.1 on my Mac. Here is the package source page: https://cran.r-project.org/src/contrib/Archive/polycor/ <https://cran.r-project.org/src/contrib/Archive/polycor/> <https://cran.r-project.org/src/contrib/Archive/polycor/ <https://cran.r-project.org/src/contrib/Archive/polycor/>>.
>>>>
>>>> This version of R is necessary for the R Essentials for the IBM Statistical Package for Social Sciences (SPSS) extension. I found this thread on the problem (http://r.789695.n4.nabble.com/Installing-polycor-package-td4726101.html <http://r.789695.n4.nabble.com/Installing-polycor-package-td4726101.html> <http://r.789695.n4.nabble.com/Installing-polycor-package-td4726101.html <http://r.789695.n4.nabble.com/Installing-polycor-package-td4726101.html>>) but it does not offer much help as my SPSS version will not recognize the most recent versions of R.
>>>>
>>>> The polycor package is not available in the repository of R 3.2.1. Here is the code I tried to install the package from the archive and the errors I received:
>>>>
>>>>> install.packages("/polycor_0.7-8.tar", repos=NULL, type="source")
>>>> Warning: invalid package ‘/polycor_0.7-8.tar’
>>>> Error: ERROR: no packages specified
>>>> Warning message:
>>>> In install.packages("/polycor_0.7-8.tar", repos = NULL, type = "source") :
>>>> installation of package ‘/polycor_0.7-8.tar’ had non-zero exit status
>>>>> install.packages("https://cran.r-project.org/src/contrib/Archive/polycor/polycor_0.7-8.tar.gz", repos=NULL, type="source")
>>>> Error in download.file(p, destfile, method, mode = "wb", ...) :
>>>> unsupported URL scheme
>>>>
>>>> Any ideas for other alternatives would be greatly appreciated. Thank you for your time!
>>>>
>>>> Best,
>>>> Evguenia
>>>>      [[alternative HTML version deleted]]
>>>>
>>>> ______________________________________________
>>>> [hidden email] <mailto:[hidden email]> mailing list -- To UNSUBSCRIBE and more, see
>>>> https://stat.ethz.ch/mailman/listinfo/r-help <https://stat.ethz.ch/mailman/listinfo/r-help>
>>>> PLEASE do read the posting guide http://www.R-project.org/posting-guide.html <http://www.r-project.org/posting-guide.html>
>>>> and provide commented, minimal, self-contained, reproducible code.
>>
>>
>> [[alternative HTML version deleted]]
>>
>> ______________________________________________
>> [hidden email] 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.
>

______________________________________________
[hidden email] 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.