LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Ubuntu (https://www.linuxquestions.org/questions/ubuntu-63/)
-   -   -bash: syntax error near unexpected token (https://www.linuxquestions.org/questions/ubuntu-63/bash-syntax-error-near-unexpected-token-942649/)

AmirJamez 04-30-2012 09:51 PM

-bash: syntax error near unexpected token
 
Hi Guys,

I am trying to install the R package with Psych to do some statistical analysis, but as I read http://personality-project.org/r/book/overview.pdf page 4, the syntax doesn't work on the Ubuntu 10.04. I am trying to execute :

install.packages("ctv")
library(ctv)
task.views("Psychometrics")

but the system keeps saying :

-bash: syntax error near unexpected token `cvt'

Any ideas ?

Thanks,

Amir

em31amit 04-30-2012 11:50 PM

This is not standard process to install a packages in ubuntu . These are particular application specific .try to use sudo with your application to open it.

knudfl 05-01-2012 02:02 AM

Welcome to LQ.

R : sudo apt-get install r-core

The R shell : sudo R
... And you get the R promt ( > ) and can do : install.packages("ctv")
etc. etc.


R packages for Ubuntu 10.04 http://packages.ubuntu.com/lucid/math/
The package r-cran-psy and many other r packages can be installed with apt.

.

AmirJamez 05-01-2012 07:48 AM

Thanks for the replies.

But in the R shell when I select wherever CRAN mirror to install.packages("ctv"), in prompts :

Warning message:
In getDependencies(pkgs, dependencies, available, lib) :
package âctvâ is not available

then nothing will happen.

thanks


All times are GMT -5. The time now is 09:15 PM.