Page 1 of 1

Unable to install R2MLwiN

Posted: Tue Jan 29, 2019 9:30 am
by GerineLodder
I am at a new computer and it seems like I am unable to install R2MLwiN.

Tried it 3 ways:

Code: Select all

install.packages("R2MLwiN")
Warning in install.packages :
package ‘R2MLwiN’ is not available (for R version 3.5.2)

Code: Select all

> install.packages("R2MLwiN", repos = "http://cran.r-project.org")
Warning in install.packages :
package ‘R2MLwiN’ is not available (for R version 3.5.2)

Code: Select all

install_github("rforge/r2mlwin", subdir="R2MLwiN")
Error in read.dcf(path) :
Found continuation line starting ' "zhengzheng236@g ...' at begin of record.

Some notes:
- Other packages install fine
- I had R 3.5.1 and previous version of RStudio installed before, same problem there. Thus, updating R(studio) did not help and problem is not specific to this R version.

Re: Unable to install R2MLwiN

Posted: Tue Jan 29, 2019 9:56 am
by ChrisCharlton
Thanks for letting us know about this, I was not aware that the package was going to be removed. We are investigating a solution however in the mean time you should be able to download the source version of the package from the archive:

https://cran.r-project.org/src/contrib/Archive/R2MLwiN/

and then install it with the following command:

Code: Select all

install.packages("R2MLwiN_0.8-5.tar.gz", repos = NULL, type="source")
assuming that the package is downloaded to the current directory.

Re: Unable to install R2MLwiN

Posted: Tue Feb 05, 2019 9:52 pm
by dcanarteg
Hello Today (Feb 5, 2019) I tried to install R2MLwiN with the following code and it gives me this error.

install.packages("R2MLwiN_0.8-5.tar.gz", repos = NULL, type="source")
Warning: invalid package ‘R2MLwiN_0.8-5.tar.gz’
Error: ERROR: no packages specified
Warning in install.packages :
installation of package ‘R2MLwiN_0.8-5.tar.gz’ had non-zero exit status

I also had that R2MLwiN is not available for R 3.5.2
install.packages("R2MLwiN", repos = "http://cran.r-project.org")
Warning in install.packages :
package ‘R2MLwiN’ is not available (for R version 3.5.2)

what can I do?
Thanks

Re: Unable to install R2MLwiN

Posted: Wed Feb 06, 2019 10:25 am
by ChrisCharlton
The example that I gave above assumes that the packages is downloaded into the current directory. If you wanted to install directly from the archive you would use the following command instead:

Code: Select all

install.packages("https://cran.r-project.org/src/contrib/Archive/R2MLwiN/R2MLwiN_0.8-5.tar.gz", repos = NULL, type="source")
Also note that if you are installing this to a machine that has not previously had R2MLwiN installed you may get errors when you install it related to missing package dependencies. If this is the case you will need to manually install any packages that it mentions and then try again.

Re: Unable to install R2MLwiN

Posted: Wed Feb 06, 2019 9:40 pm
by ChrisCharlton
We have now added an explanation of the problem, and details of a workaround to the R2MLwiN main web page:

https://www.bristol.ac.uk/cmm/software/r2mlwin/