Having problems installing dslabs package

Hello Friends,

I am having problems installing dslabs and some other packages in rstudio

For example, I keep getting this error messages all the time:

install.packages(dslabs)
Error in install.packages : object 'dslabs' not found

I have tried several ways but not installing. Please i need assistance.

Thanks.

You have to quote the package name, otherwise is going to be interpreted as a variable that doesn't exist.

install.packages("dslabs")

Thanks. I tried it. It brought out this:

Warning in install.packages :
unable to access index for repository https://cran.rstudio.com/bin/windows/contrib/3.1
Installing package into ‘C:/Users/USER/Documents/R/win-library/3.1’
(as ‘lib’ is unspecified)
Warning in install.packages :
unable to access index for repository https://cran.rstudio.com/bin/windows/contrib/3.1

package ‘dslabs’ is available as a source package but not as a binary

Warning in install.packages :
package ‘dslabs’ is not available (as a binary package for R version 3.1.3)

You are using a very old R version, this is going to bring you many installation issues, it would be better for you if you update it to the latest version 3.6.3

Wow...Pls how can i update it now.

Thanks

Simply download it and install

https://cran.r-project.org/bin/windows/base/

Thanks ...doing it now

hello
please i got this error while trying to install dslabs.what do i do?thank you.
p.s. i removed a "t" from the link so i can post this.

Installing package into ‘C:/Users/henry/Documents/R/win-library/3.6’
(as ‘lib’ is unspecified)
Warning: unable to access index for repository htps://cloud.r-project.org/src/contrib:
cannot open URL 'htps://cloud.r-project.org/src/contrib/PACKAGES'
Warning: unable to access index for repository htps://cloud.r-project.org/bin/windows/contrib/3.6:
cannot open URL 'htps://cloud.r-project.org/bin/windows/contrib/3.6/PACKAGES'
Warning message:
package ‘dslabs’ is not available (for R version 3.6.3)

This seems like a connectivity issue, R is not being able to connect to the CRAN repository you have selected, these are some things to try.

  • Choose a different CRAN repository, RStudios repository is a good choice (http://cran.rstudio.com/) or you could choose one that is geographically closer to you.
  • Disable secure download setting.
  • Check if your internet connection has traffic restrictions of some kind, like a firewall, proxy server, etc. This is usually the case when you are at work or school.

I actually tried this and as at now I'm at loss on what to do. Maybe I'll save up and get a new system and try again on it. I guess it's because this one is pretty old. Thank you though. I really appreciate.

This topic was automatically closed 21 days after the last reply. New replies are no longer allowed.