Warning: file_get_contents(/data/phpspider/zhask/data//catemap/4/r/74.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
RODBC 1.3-16缺失_R_Url_Rodbc - Fatal编程技术网

RODBC 1.3-16缺失

RODBC 1.3-16缺失,r,url,rodbc,R,Url,Rodbc,我正在尝试安装RODBC install.packages('RODBC') 以及返回错误: Retrieving 'https://cran.rstudio.com/src/contrib/RODBC_1.3-16.tar.gz' ... Warning messages: 1: curl: (22) The requested URL returned error: 404 Not Found 2: curl: (22) The requested URL returned error:

我正在尝试安装RODBC

install.packages('RODBC')
以及返回错误:

Retrieving 'https://cran.rstudio.com/src/contrib/RODBC_1.3-16.tar.gz' ...
Warning messages:
1: curl: (22) The requested URL returned error: 404 Not Found 
2: curl: (22) The requested URL returned error: 404 Not Found 
上面的URL确实返回未找到的页面。我真的需要1.3-16版本,因为我安装在R3.6.0上


有什么解决办法吗?

软件包的最新版本是1.3-17。来自CRAN官方文档():

ODBC数据库访问ODBC数据库接口

版本:1.3-17取决于:R(≥ (4.0.0)

安装R的4.X.X版,然后使用
Install.packages
功能再次尝试安装

如果要保留旧的R版本,请使用此方法安装以前的软件包版本:

require(devtools)
install_version("RODBC", version = "1.3-16")

> Downloading package from url:
> https://cran.rstudio.com/src/contrib/Older/RODBC_1.3-16.tar.gz
> Installing package into
> ‘C:/Users/212717174/Documents/R/win-library/3.6’ (as ‘lib’ is
> unspecified)
> * installing *source* package 'RODBC' ...
> ** package 'RODBC' successfully unpacked and MD5 sums checked
> ** using staged installation
> ** libs
> 
> *** arch - i386 c:/Rtools/mingw_32/bin/gcc  -I"C:/PROGRA~1/R/R-36~1.2/include" -DNDEBUG -I.         -O3 -Wall  -std=gnu99 -mtune=generic -c RODBC.c -o RODBC.o c:/Rtools/mingw_32/bin/gcc -shared -s -static-libgcc -o RODBC.dll
> tmp.def RODBC.o -lodbc32 -LC:/PROGRA~1/R/R-36~1.2/bin/i386 -lR
> installing to
> C:/Users/212717174/Documents/R/win-library/3.6/00LOCK-RODBC/00new/RODBC/libs/i386
> 
> *** arch - x64 c:/Rtools/mingw_64/bin/gcc  -I"C:/PROGRA~1/R/R-36~1.2/include" -DNDEBUG -I.         -O2 -Wall  -std=gnu99 -mtune=generic -c RODBC.c -o RODBC.o RODBC.c: In function 'cachenbind': RODBC.c:672:8: warning: cast to pointer from integer of
> different size [-Wint-to-pointer-cast]
>         (SQLPOINTER) (unsigned long) thisHandle->rowArraySize, 0 );
>         ^ c:/Rtools/mingw_64/bin/gcc -shared -s -static-libgcc -o RODBC.dll tmp.def RODBC.o -lodbc32 -LC:/PROGRA~1/R/R-36~1.2/bin/x64
> -lR installing to C:/Users/212717174/Documents/R/win-library/3.6/00LOCK-RODBC/00new/RODBC/libs/x64
> ** R
> ** inst
> ** byte-compile and prepare package for lazy loading
> ** help
> *** installing help indices   converting help for package 'RODBC'
>     finding HTML links ... done
>     RODBC-internal                          html  
>     RODBC-package                           html  
>     odbc                                    html  
>     odbcClose                               html  
>     odbcConnect                             html  
>     odbcDataSources                         html  
>     odbcGetInfo                             html  
>     odbcSetAutoCommit                       html  
>     setSqlTypeInfo                          html  
>     sqlColumns                              html  
>     sqlCopy                                 html  
>     sqlDrop                                 html  
>     sqlFetch                                html  
>     sqlQuery                                html  
>     sqlSave                                 html  
>     sqlTables                               html  
>     sqlTypeInfo                             html  
> ** building package indices
> ** installing vignettes
> ** testing if installed package can be loaded from temporary location
> *** arch - i386
> *** arch - x64
> ** testing if installed package can be loaded from final location
> *** arch - i386
> *** arch - x64
> ** testing if installed package keeps a record of temporary installation path
> * DONE (RODBC)
在此R版本上测试:

R.version
               _                           
platform       x86_64-w64-mingw32          
arch           x86_64                      
os             mingw32                     
system         x86_64, mingw32             
status                                     
major          3                           
minor          6.2                         
year           2019                        
month          12                          
day            12                          
svn rev        77560                       
language       R                           
version.string R version 3.6.2 (2019-12-12)
nickname       Dark and Stormy Night