---
title: "Install error: install.packages type=\"source\""
url: "https://openforis.support/questions/253/install-error-installpackages-typesource"
tags: ["calc"]
status: "answered"
score: 0
answer_count: 1
asked: "2015-06-01T10:12:00"
last_activity: "2015-06-01T11:33:30"
source: "Open Foris Support - Q&A Forum"
license: "Copyright Open Foris, 2026. Some rights reserved under creative commons license."
---

# Install error: install.packages type="source"

Asked by pmagdon on 2015-06-01

Hi,

when installing Calc on a fresh Window 7 system with a new R installation I recieve the following error:

![alt text][1]


  [1]: http://www.openforis.org/support/upfiles/Error_Calc.PNG

The R-script used in the installation commits the following code:
install.packages("DBI_0.2-7.zip".repos=NULL)
However, to be correctly applied by R it shoud be recoded into:
install.packages("DBI_0.2-7.zip".repos=NULL,type="source")

I can change the R install script but this won't help to finish the intallation.

How can we fix that issue und then run the installation?


## Answer (score 0, by Mino Togna on 2015-06-01)

Link: https://openforis.support/questions/253/install-error-installpackages-typesource/255

Hi,

thank you for reporting this. 

It seems that with R-3.2 there's this problem. With R 3.1 the problem doesn't happen. 

I have opened an issue https://github.com/openforis/calc/issues/9 .

However if you need to use Calc before the fix, please use R 3.1

Thank you,

Mino
