0

Trying to install Shiny local pacakge after downloading:

install.packages("/tmp/shiny_0.13.1.tar.gz", repos=NULL, type="source") 

I get this error:

-ksh: syntax error: `(' unexpected

is the syntax right ? Please advise

iaav
  • 484
  • 2
  • 9
  • 26
  • did you mean install.packages("shiny") . Shiny is available in cran . – Ram K Jul 11 '16 at 21:18
  • I tying as per this stackflow post: http://stackoverflow.com/questions/1474081/how-do-i-install-an-r-package-from-source – iaav Jul 11 '16 at 21:19
  • If all you have to do is install an R package available on cran , you can do install.packages("packagename") , in this case install.packages("shiny") ...Additionally sometimes I have had to specify the repo name from the list available at : https://cran.r-project.org/mirrors.html if i sense some problem with the default mirror – Ram K Jul 11 '16 at 21:21
  • 1
    Syntax looks correct to me although the shiny on CRAN is version 0.13.2. What does this return: `file.exists("/tmp/shiny_0.13.1.tar.gz")` – IRTFM Jul 11 '16 at 21:33
  • `ksh`? I.e., Korn shell? Did you running this line in the shell? It needs to be run in an R session. – merv Jul 19 '17 at 22:18

0 Answers0