R error: Cannot install package while starting R

0 votes

I'm running R on my windows machine, but when I try to install any package, I get an error message like this:

R version 3.1.0 (2014-04-10) -- "Spring Dance"
Copyright (C) 2014 The R Foundation for Statistical Computing
Platform: x86_64-w64-mingw32/x64 (64-bit)


R is a collaborative project with many contributors.
Type 'contributors()' for more information and
'citation()' on how to cite R or R packages in publications.

Type 'demo()' for some demos, 'help()' for on-line help, or
'help.start()' for an HTML browser interface to help.
Type 'q()' to quit R.

[Workspace loaded from ~/.RData]

**Error installing package: 'C:\Program' is not recognized as an internal or external command,
operable program or batch file.

Error installing package: 'C:\Program' is not recognized as an internal or external command,
operable program or batch file.**

Loading required package: arules
Loading required package: Matrix

Attaching package: ‘arules’

The following objects are masked from ‘package:base’:

    %in%, write
Dec 13, 2018 in Data Analytics by Zulaikha
• 870 points
72 views

1 answer to this question.

0 votes

Try to reinstall R. I got a similar error and re-installation fixed it.

 There's a problem while reloading an old .RData file, which does not exist.

answered Dec 13, 2018 by Tyrion anex
• 8,310 points

Related Questions In Data Analytics

0 votes
1 answer
0 votes
1 answer

How to install an R package from source?

If you have your file located locally ...READ MORE

answered Apr 13, 2018 in Data Analytics by CodingByHeart77
• 3,690 points
66 views
0 votes
1 answer

How can I install older version of R package ?

Supposedly you want to install some old ...READ MORE

answered May 14, 2018 in Data Analytics by zombie
• 3,710 points
58 views
0 votes
1 answer
0 votes
1 answer

Error saying " cannot open the connection" when trying to install a package in R

Try install.packages(“package_name”, repos="http://cran.us.r-p ...READ MORE

answered Nov 26, 2018 in Data Analytics by Maverick
• 10,040 points
468 views
0 votes
1 answer

R programming error

Alright, you can either use gsub to match the ...READ MORE

answered Dec 18, 2018 in Data Analytics by Tyrion anex
• 8,310 points
36 views
0 votes
1 answer

R Programming error: twitteR OAuthFactory object

You need to install the following packages: install.packages(c('ROA ...READ MORE

answered Jan 11 in Data Analytics by Tyrion anex
• 8,310 points
100 views