1
Rにsourcetoolsをインストールする際に問題があります。これはshinyをインストールする依存関係の1つです。sourcetoolsのインストールが失敗するR
Rはバージョン3.4.0です。
次のうち、頭と尾を行うことができます。
install.packages('sourcetools', repos='http://cran.us.r-project.org')
trying URL 'http://cran.us.r-project.org/src/contrib/sourcetools_0.1.2.tar.gz'
Content type 'application/x-gzip' length 16227 bytes (15 KB)
==================================================
downloaded 15 KB
* installing *source* package 'sourcetools' ...
** package 'sourcetools' successfully unpacked and MD5 sums checked
** libs
g++ -std=c++0x -I/home/tomgeo/R/lib64/R/include -DNDEBUG -I../inst/include -I/usr/local/include -fpic -g -O2 -c Reader.cpp -o Reader.o
g++ -std=c++0x -I/home/tomgeo/R/lib64/R/include -DNDEBUG -I../inst/include -I/usr/local/include -fpic -g -O2 -c Tokenizer.cpp -o Tokenizer.o
In file included from ../inst/include/sourcetools/cursor/TokenCursor.h:7,
from ../inst/include/sourcetools/cursor/cursor.h:5,
from ../inst/include/sourcetools.h:11,
from Tokenizer.cpp:1:
../inst/include/sourcetools/tokenization/Token.h: In constructor 'sourcetools::tokens::Token::Token()':
../inst/include/sourcetools/tokenization/Token.h:27: error: 'nullptr' was not declared in this scope
../inst/include/sourcetools/tokenization/Token.h: In constructor 'sourcetools::tokens::Token::Token(sourcetools::tokens::TokenType)':
../inst/include/sourcetools/tokenization/Token.h:34: error: 'nullptr' was not declared in this scope
../inst/include/sourcetools/tokenization/Token.h: In constructor 'sourcetools::tokens::Token::Token(const sourcetools::tokens::Token::Position&)':
../inst/include/sourcetools/tokenization/Token.h:41: error: 'nullptr' was not declared in this scope
../inst/include/sourcetools/tokenization/Token.h: In function 'std::ostream& sourcetools::operator<<(std::ostream&, const std::vector<sourcetools::tokens::Token, std::allocator<sourcetools::tokens::Token> >&)':
../inst/include/sourcetools/tokenization/Token.h:457: error: expected initializer before ':' token
../inst/include/sourcetools/tokenization/Token.h:459: error: expected primary-expression before 'return'
../inst/include/sourcetools/tokenization/Token.h:459: error: expected ';' before 'return'
../inst/include/sourcetools/tokenization/Token.h:459: error: expected primary-expression before 'return'
../inst/include/sourcetools/tokenization/Token.h:459: error: expected ')' before 'return'
In file included from ../inst/include/sourcetools/cursor/cursor.h:5,
from ../inst/include/sourcetools.h:11,
from Tokenizer.cpp:1:
../inst/include/sourcetools/cursor/TokenCursor.h: In member function 'bool sourcetools::cursors::TokenCursor::moveToPosition(const sourcetools::cursors::TokenCursor::Position&)':
../inst/include/sourcetools/cursor/TokenCursor.h:167: error: expected primary-expression before '[' token
../inst/include/sourcetools/cursor/TokenCursor.h:167: error: expected primary-expression before ']' token
../inst/include/sourcetools/cursor/TokenCursor.h:167: error: expected primary-expression before 'const'
../inst/include/sourcetools/cursor/TokenCursor.h:167: error: expected primary-expression before 'const'
make: *** [Tokenizer.o] Error 1
ERROR: compilation failed for package 'sourcetools'
Rバージョンは '3.2.4'ですか?また、OSとバージョン –
Rのバージョンは、最初の投稿に記載されているように3.4.0です。 OSがCentOS 6 –
私はあなたがR 3.4.0を持っているかどうかわかりません、3.2.4が最新バージョンで、3.3.0が今すぐプレリリースされていることを考えればわかります。 –