Skip to content

Conversation

dongzhuoer
Copy link
Contributor

Rcpp::evalCpp('Environment::global_env().ls()')
file59666c8ac214.cpp: In function ‘SEXPREC* get_value()’:
file59666c8ac214.cpp:6:61: error: no matching function for call to ‘Rcpp::Environment_ImplRcpp::PreserveStorage::ls()’
SEXP get_value(){ return wrap( Environment::global_env().ls() ) ; }
^
In file included from /home/zhuoer/.local/lib/R/Rcpp/include/Rcpp.h:38:0,
from file59666c8ac214.cpp:1:
/home/zhuoer/.local/lib/R/Rcpp/include/Rcpp/Environment.h:85:14: note: candidate: SEXPREC* Rcpp::Environment_Impl::ls(bool) const [with StoragePolicy = Rcpp::PreserveStorage; SEXP = SEXPREC*]
SEXP ls(bool all) const {
^~
/home/zhuoer/.local/lib/R/Rcpp/include/Rcpp/Environment.h:85:14: note: candidate expects 1 argument, 0 provided
make: *** [file59666c8ac214.o] Error 1
g++ -I"/usr/share/R/include" -DNDEBUG -I"/home/zhuoer/.local/lib/R/Rcpp/include" -I"/tmp/RtmpXtPnoL/sourceCpp-x86_64-pc-linux-gnu-1.0.0" -fpic -g -O2 -fdebug-prefix-map=/build/r-base-oUvOgu/r-base-3.5.1=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -g -c file59666c8ac214.cpp -o file59666c8ac214.o
/usr/lib/R/etc/Makeconf:168: recipe for target 'file59666c8ac214.o' failed
Error in sourceCpp(code = code, env = env, rebuild = rebuild, cacheDir = cacheDir, :
Error 1 occurred building shared library.
Rcpp::evalCpp('Environment::global_env().ls(TRUE)')
[1] ".Random.seed"

> Rcpp::evalCpp('Environment::global_env().ls()')
file59666c8ac214.cpp: In function ‘SEXPREC* get_value()’:
file59666c8ac214.cpp:6:61: error: no matching function for call to ‘Rcpp::Environment_Impl<Rcpp::PreserveStorage>::ls()’
 SEXP get_value(){ return wrap( Environment::global_env().ls() ) ; }
                                                             ^
In file included from /home/zhuoer/.local/lib/R/Rcpp/include/Rcpp.h:38:0,
                 from file59666c8ac214.cpp:1:
/home/zhuoer/.local/lib/R/Rcpp/include/Rcpp/Environment.h:85:14: note: candidate: SEXPREC* Rcpp::Environment_Impl<StoragePolicy>::ls(bool) const [with StoragePolicy = Rcpp::PreserveStorage; SEXP = SEXPREC*]
         SEXP ls(bool all) const {
              ^~
/home/zhuoer/.local/lib/R/Rcpp/include/Rcpp/Environment.h:85:14: note:   candidate expects 1 argument, 0 provided
make: *** [file59666c8ac214.o] Error 1
g++  -I"/usr/share/R/include" -DNDEBUG   -I"/home/zhuoer/.local/lib/R/Rcpp/include" -I"/tmp/RtmpXtPnoL/sourceCpp-x86_64-pc-linux-gnu-1.0.0"    -fpic  -g -O2 -fdebug-prefix-map=/build/r-base-oUvOgu/r-base-3.5.1=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -g  -c file59666c8ac214.cpp -o file59666c8ac214.o
/usr/lib/R/etc/Makeconf:168: recipe for target 'file59666c8ac214.o' failed
Error in sourceCpp(code = code, env = env, rebuild = rebuild, cacheDir = cacheDir,  : 
  Error 1 occurred building shared library.
> Rcpp::evalCpp('Environment::global_env().ls(TRUE)')
[1] ".Random.seed"
@dongzhuoer
Copy link
Contributor Author

dongzhuoer commented Dec 22, 2018

Moved to #933

@dongzhuoer
Copy link
Contributor Author

dongzhuoer commented Dec 26, 2018

implemented in de18102

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant