An embedded and charset-unspecified text was scrubbed... Name: not available URL: <https://stat.ethz.ch/pipermail/r-sig-debian/attachments/20090827/176e5120/attachment.pl>
Installing R Packages on ubuntus
3 messages · Ogbos Okike, Liviu Andronic, Michael Rutter
Hello,
On 8/27/09, ogbos okike <ogbos.okike at gmail.com> wrote:
command line so as to run R. Inside R, I typed >
install.packages("raster",repos="http://R-Forge.R-project.org<http://r-forge.r-project.org/>")
so as to install the package, but no luck. Below is the error message:
If you're running an amd64 Ubuntu Jackalope (something you didn't quite specify), the following might work. Add deb http://debian.cran.r-project.org/cran2deb/debian-amd64/ testing/ in /etc/apt/sources.list These binaries are built for Debian testing, but they seem to be compatible with Jackalope. Reload Synaptic, and install r-cran-<whatever>. Liviu
Ogbos,
This is a tricky install since you need some ubuntu packages and R
packages from different locations (cran and R-forge). Also note that
there was an error in your install.packages command. This is what I
used on my 64bit jaunty machine.
sudo apt-get install gdal-bin libgdal1-dev
sudo R
# Following commands in R
install.packages("sp")
install.packages("rgdal")
install.packages("raster",repos="http://R-Forge.R-project.org")
I can't grantee raster works, but this installed the packages and I was
able to load the library.
Hope this helps,
Michael
ogbos okike wrote:
Hello,
Please I am a learner. My operating system is ubuntus and I am trying to
install raster package from R-forge site. I entered sudo apt-get install
r-base-dev on the command line and that worked fine. I then typed R at the
command line so as to run R. Inside R, I typed >
install.packages("raster",repos="http://R-Forge.R-project.org<http://r-forge.r-project.org/>")
so as to install the package, but no luck. Below is the error message:
Warning in install.packages("raster", repos =
"http://R-Forge.R-project.org<http://r-forge.r-project.org/>")
:
argument 'lib' is missing: using
'/home/ogbos/R/x86_64-pc-linux-gnu-library/2.8'
Warning: unable to access index for repository
http://R-Forge.R-project.org/src/contrib<http://r-forge.r-project.org/src/contrib>
Warning message:
In install.packages("raster", repos =
"http://R-Forge.R-project.org<http://r-forge.r-project.org/>")
:
package ?raster? is not available
Where did I mess things up?
Could you also please tell me how to run R as root.
Your kind help will be much appreciated.
Thanks
Ogbos
[[alternative HTML version deleted]]
------------------------------------------------------------------------
_______________________________________________ R-SIG-Debian mailing list R-SIG-Debian at r-project.org https://stat.ethz.ch/mailman/listinfo/r-sig-debian
Dr. Michael A. Rutter School of Science Penn State Erie, The Behrend College Station Road Erie, PA 16563 http://math.bd.psu.edu/faculty/rutter