kevinushey / sourcetools

Tools for reading, tokenizing, and parsing R code.
MIT License
77 stars 3 forks source link

fails on install_github #17

Closed saptarshiguha closed 8 years ago

saptarshiguha commented 8 years ago

In R,

> > devtools::install_github("kevinushey/sourcetools")
> Downloading GitHub repo kevinushey/sourcetools@master
> Installing sourcetools
> Error: Malformed remote specification 'hadley/testthat'
> 

Also tried cloning it and runnign R CMD install got


est-Parser.cpp: In function ‘void ____C_A_T_C_H____T_E_S_T____13()’:
test-Parser.cpp:19: error: reference to ‘Token’ is ambiguous
test-Parser.cpp:11: error: candidates are: typedef class sourcetools::tokens::Token Token
../inst/include/sourcetools/tokenization/Token.h:19: error:                 class sourcetools::tokens::Token
test-Parser.cpp:19: error: template argument 1 is invalid
test-Parser.cpp:19: error: template argument 2 is invalid
test-Parser.cpp:19: error: invalid type in declaration before ‘=’ token
test-Parser.cpp:19: error: cannot convert ‘std::vector<sourcetools::tokens::Token, std::allocator<sourcetools::tokens::Token> >’ to ‘int’ in initialization
test-Parser.cpp:25: error: no matching function for call to ‘sourcetools::cursors::TokenCursor::TokenCursor(int&)’
../inst/include/sourcetools/cursor/TokenCursor.h:20: note: candidates are: sourcetools::cursors::TokenCursor::TokenCursor(const std::vector<sourcetools::tokens::Token, std::allocator<sourcetools::tokens::Token> >&)
../inst/include/sourcetools/cursor/TokenCursor.h:12: note:                 sourcetools::cursors::TokenCursor::TokenCursor(const sourcetools::cursors::TokenCursor&)
make: *** [test-Parser.o] Error 1
ERROR: compilation failed for package ‘sourcetools’
* removing ‘/home/sguha/R_libs/sourcetools’
> R.version
               _
platform       x86_64-redhat-linux-gnu
arch           x86_64
os             linux-gnu
system         x86_64, linux-gnu
status
major          3
minor          2.2
year           2015
month          08
day            14
svn rev        69053
language       R
version.string R version 3.2.2 (2015-08-14)
nickname       Fire Safety
kevinushey commented 8 years ago

What compiler are you using? I'm assuming this is an older gcc compiler?

saptarshiguha commented 8 years ago

The version is

gcc --version gcc (GCC) 4.4.7 20120313 (Red Hat 4.4.7-16) Copyright (C) 2010 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

kevinushey commented 8 years ago

Thanks (and sorry for getting back to you so late). I'll see if I can resolve this.

kevinushey commented 8 years ago

I just pushed a commit that should hopefully resolve this: https://github.com/kevinushey/sourcetools/commit/8e8dd4fc77787f456f6d8a5985fbde398ac5330f

Can you give it a try and let me know?

saptarshiguha commented 8 years ago

It works splendid. Thanks much.