Today, i try to install a package in R named 'DOBDC', while i meet a message:

> install.packages('RODBC')

package ‘RODBC’ is available as a source package but not as a binary

警告信息:
package ‘RODBC’ is not available (for R version 3.1.2)

Then, i opened 'R package installer', choosed 'CRAN(sources)' and enter 'RODBC' for searching.

Greatfully, there comed a package named 'RODBC', I enter 'install Selected' quickly. (choose 'install dependencies')

After a moment, R told me that it had put it in this:

下载的程序包在
‘/private/var/folders/y2/gh_0bmkn42qbgvj7hjjvtjb40000gn/T/RtmpkO2JlR/downloaded_packages’里

I opened it up and saw it. I wrote these into R:

> install.packages('RODBC_1.3-10.tar.gz',repos=NULL,tpye='source')
错误: 文件‘RODBC_1.3-10.tar.gz’不是OS ​​X的二进制软件包

Pay attention here:

i have tried to use Rstudio to install 'RODBC' by 'install packages' in 'Tool', while it still gives me:

> install.packages("RODBC")

package ‘RODBC’ is available as a source package but not as a binary

Warning in install.packages :
package ‘RODBC’ is not available (for R version 3.1.2)

so , i have to ues R Console again.

####################################

Question is what I can do now.

e.g. seceed install as:

> install.packages('animation')
试开URL’http://cran.rstudio.com/bin/macosx/mavericks/contrib/3.1/animation_2.3.tgz'
Content type 'application/x-gzip' length 460758 bytes (449 Kb)
打开了URL
==================================================
downloaded 449 Kb

The downloaded binary packages are in
/var/folders/y2/gh_0bmkn42qbgvj7hjjvtjb40000gn/T//Rtmp4p2EbR/downloaded_packages
> library(animation)
>

##########################################################

haha! i have find a way to solve last question, that is,

open 'R Package Installer' in 'packages & data'. i choose 'local source package' under 'Packages Repository', enter 'install...'. R  will tell us to choose a package. here i choose the package i just download before:

下载的程序包在
‘/private/var/folders/y2/gh_0bmkn42qbgvj7hjjvtjb40000gn/T/RtmpkO2JlR/downloaded_packages’里

Then, it works!!!!!!!!

I think every time i meet the problem about this , i can solve them as the same way.

##########################################################################

i have meet the followint problem too. Make sure u have solved them.

some importance:

I had the same problem ("ODBC headers sql.h and sqlext.h not found") on OS X, and fixed it by installing unixodbc (brew install unixodbc)

R: for installing package 'RODBC'的更多相关文章

  1. R for installing package 'omg'

    The time i have tried to install the package named 'PODBC'  and it worked. But now i meet a problem ...

  2. 使用R语言和XML包抓取网页数据-Scraping data from web pages in R with XML package

    In the last years a lot of data has been released publicly in different formats, but sometimes the d ...

  3. The leaflet package for online mapping in R(转)

    It has been possible for some years to launch a web map from within R. A number of packages for doin ...

  4. R语言RODBC数据库操作

    最近准备做一个股票的数据库,用R语言来获取数据,然后存在SQL Sever 2016 express 里面,虽然前面接触过一些操作,但是还是很不熟悉,现在数据已经能获取到了,是时候好好学习一下怎么用R ...

  5. Create and format Word documents using R software and Reporters package

    http://www.sthda.com/english/wiki/create-and-format-word-documents-using-r-software-and-reporters-pa ...

  6. 解决Package is not available (for R version XXX)?

    目录 1. 更新R(不推荐) 2. 更改或指定镜像源 3.源码安装 安装R包时这个错误是经常见到的.我认为有几个方法可解决,记录之. 1. 更新R(不推荐) 简单粗暴的方法就是更新R,但这波及的范围太 ...

  7. R语言 一套内容 从入门 到放弃

    [怪毛匠子整理] 1.下载 wget http://mirror.bjtu.edu.cn/cran/src/base/R-3/R-3.0.1.tar.gz 2.解压: tar -zxvf R-3.0. ...

  8. R基础学习(二)-- 连接sqlserver

    测试环境:win10+RStudio 三个步骤:(1)创建ODBC数据源:(2)install.packages('RODBC') :(3)编写连接测试脚本 (1)创建ODBC数据源 控制面板-> ...

  9. java 与 R 相互调用

    https://www.r-project.org/ http://cos.name/2013/08/r-rjava-java/ http://blog.csdn.net/hwssg/article/ ...

随机推荐

  1. Visual studio 能否定位打开文件在项目中的位置

    文件位置:http://zhidao.baidu.com/link?url=FmwuCXTR2ptnRfqr7xGGPrnoXaONDAWgvO6iP4Dn736DwL7hEZCwQqanJbE0di ...

  2. js iframe问题

    父窗口获得iframe的window对象,从而控制对iframe的控制 document.getElementById("frameID").contentWindow;

  3. Back to Basics: Using KVO

    One of the things I like most about Apple’s iOS SDK is the consistent and easy-to-use API they provi ...

  4. python小技巧

    有的时候用一个全新的模块,对其属性和方法,用法并不太了解 这时你可以这样做: 1.dir([name]),如dir(int),会显示int的所有属性和方法

  5. 简单的jQuery日期选择

    建立一个存放日期的文本框 点击文本框弹出一个选择框引用jQuery文件引用bootstrap文件 使用模态框 使用模态框的方法设置点击文本框显示模态框手动打开模态框的方法:$('id').modal( ...

  6. MySQL主从复制与lvs+keepalived单点写入读负载均衡高可用实验【转】

    一.环境Master(主机A):192.168.1.1Slave(主机B) :192.168.1.2  W-VIP(写入)  :192.168.1.3 R-VIP(读取)  :192.168.1.4  ...

  7. [Falcor] Retrieving Multiple Values

    In addition to being able to retrieve a path from a Falcor Model, you can also retrieve multiple Pat ...

  8. cocos2dx3.0 超级马里奥开发笔记(两)——正确的规划游戏逻辑

    我将不得不拿出一个完整的开发笔记.由于个人原因.代码已OK该,博客,那么就不要粘贴代码,直接解释了整个游戏设计,更确切地说,当新手应该注意的地方发展. 1.继承类和扩展作用的权----展阅读(MVC) ...

  9. Java基础知识强化27:Object类之toString()方法

    1. Object类的toString()方法: public  String  toString():返回该对象的字符串表示 2. 案例演示: (1)Student类: package cn.itc ...

  10. js中的隐式转换

    js中的不同的数据类型之间的比较转换规则如下: 1. 对象和布尔值比较 对象和布尔值进行比较时,对象先转换为字符串,然后再转换为数字,布尔值直接转换为数字 [] == true; //false [] ...