Github packages in shiny build

45 views
Skip to first unread message

Taylor White

unread,
May 16, 2015, 8:59:12 PM5/16/15
to shinyap...@googlegroups.com
Hi all,

Is it possible to use development packages hosted on GitHub for a shiny app? I'm interested in using https://github.com/rstats-db/RPostgres but the build failed.

Thank you,

Taylor

Tareef Kawaf

unread,
May 18, 2015, 10:01:08 AM5/18/15
to Taylor White, shinyap...@googlegroups.com
Yes, you should definitely be able to use packages from Github.  The shinyapps package should detect the version of the package you have installed and include that in the manifest it sends to shinyapps.io.

-Tareef

--
You received this message because you are subscribed to the Google Groups "ShinyApps Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to shinyapps-use...@googlegroups.com.
To post to this group, send email to shinyap...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/shinyapps-users/f854aa5c-2a52-4f35-bde4-cc3784941c19%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Taylor White

unread,
May 19, 2015, 11:32:45 AM5/19/15
to Tareef Kawaf, shinyap...@googlegroups.com
Thanks Tareef! 

I think there must be some other issues with the build then. Could it be that the issue relates to problems compiling Rcpp components? I received the error below when trying to build RPostgres: 

[2015-05-19T06:18:27.190917678+0000] Building R package: RPostgres (0.1)
/mnt/packages/build /mnt
Warning in untar2(tarfile, files, list, exdir, restore_times) :
  skipping pax global extended headers
* installing to library ‘/usr/local/lib/R/site-library’
* installing *source* package ‘RPostgres’ ...
** libs
gcc -std=gnu99 -I/usr/share/R/include -DNDEBUG -I/usr/include/postgresql  -I"/usr/local/lib/R/site-library/Rcpp/include" -I"/usr/local/lib/R/site-library/BH/include"   -fpic  -g -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat -Wformat-security -Werror=format-security -D_FORTIFY_SOURCE=2 -g  -c RPostgres-init.c -o RPostgres-init.o
g++ -I/usr/share/R/include -DNDEBUG -I/usr/include/postgresql  -I"/usr/local/lib/R/site-library/Rcpp/include" -I"/usr/local/lib/R/site-library/BH/include"   -fpic  -g -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat -Wformat-security -Werror=format-security -D_FORTIFY_SOURCE=2 -g  -c RcppExports.cpp -o RcppExports.o
g++ -I/usr/share/R/include -DNDEBUG -I/usr/include/postgresql  -I"/usr/local/lib/R/site-library/Rcpp/include" -I"/usr/local/lib/R/site-library/BH/include"   -fpic  -g -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat -Wformat-security -Werror=format-security -D_FORTIFY_SOURCE=2 -g  -c connection.cpp -o connection.o
g++ -I/usr/share/R/include -DNDEBUG -I/usr/include/postgresql  -I"/usr/local/lib/R/site-library/Rcpp/include" -I"/usr/local/lib/R/site-library/BH/include"   -fpic  -g -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat -Wformat-security -Werror=format-security -D_FORTIFY_SOURCE=2 -g  -c encode.cpp -o encode.o
g++ -I/usr/share/R/include -DNDEBUG -I/usr/include/postgresql  -I"/usr/local/lib/R/site-library/Rcpp/include" -I"/usr/local/lib/R/site-library/BH/include"   -fpic  -g -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat -Wformat-security -Werror=format-security -D_FORTIFY_SOURCE=2 -g  -c encrypt.cpp -o encrypt.o
In file included from PqResult.h:9:0,
                 from RPostgres_types.h:5,
                 from RcppExports.cpp:4:
PqRow.h: In member function ‘bool PqRow::hasData()’:
PqRow.h:45:24: error: ‘PGRES_SINGLE_TUPLE’ was not declared in this scope
In file included from RPostgres_types.h:5:0,
                 from RcppExports.cpp:4:
PqResult.h: In member function ‘void PqResult::bind()’:
PqResult.h:82:43: error: ‘PQsetSingleRowMode’ was not declared in this scope
PqResult.h: In member function ‘void PqResult::bind(Rcpp::ListOf<Rcpp::Vector<16> >)’:
PqResult.h:105:43: error: ‘PQsetSingleRowMode’ was not declared in this scope
make: *** [RcppExports.o] Error 1
make: *** Waiting for unfinished jobs....

In file included from PqResult.h:9:0,
 ################################### End Log################################### 
Error: Unhandled Exception: Child Task 34903624 failed: Error building image: Error building RPostgres (0.1). Build exited with non-zero status: 1

Tareef Kawaf

unread,
May 19, 2015, 5:11:48 PM5/19/15
to Taylor White, shinyap...@googlegroups.com
Hi Taylor,
I actually don't know much about RPostgres, but I noticed that the current version is 0.4. Would it make sense to upgrade your version of RPostgres and see if that makes a difference?
-Tareef

Taylor White

unread,
May 19, 2015, 5:19:17 PM5/19/15
to Tareef Kawaf, shinyap...@googlegroups.com

Yeah so it's a bit confusing -- there is an established RPostgreSQL package (0.4 as you say) on CRAN and there is a RPostgres in development on github (0.1). I think I found a workaround but I'll post the resolution when I figure it out.

Reply all
Reply to author
Forward
0 new messages