"Unable to retrieve package records" for a shinyapps.io with github package

1,535 views
Skip to first unread message

Dieter Menne

unread,
Apr 22, 2016, 3:33:46 PM4/22/16
to Shiny - Web Framework for R
I have a package on github:

https://github.com/dmenne/gastempt

with a Shiny application. The package compiles ok on TravisCI.

Trying to upload the shiny app within the package to shinyapps.io, I get the following error:

Preparing to deploy application...
DONE Uploading bundle for application: 97004...Fehler: Unable to retrieve package records for the following packages: - "gastempt"


Any ideas?

Dieter



 

Joe Cheng

unread,
Apr 22, 2016, 4:38:30 PM4/22/16
to Dieter Menne, Shiny - Web Framework for R
The problem is that we're not able to automatically infer where this package's home is if you install it locally. If you install from github using:

devtools::install_github("dmenne/gastempt")

then try publishing to ShinyApps.io again, it should work.

--
You received this message because you are subscribed to the Google Groups "Shiny - Web Framework for R" group.
To unsubscribe from this group and stop receiving emails from it, send an email to shiny-discus...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/shiny-discuss/82ad5501-e323-499b-8c9e-1eb825a6f6ff%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Dieter Menne

unread,
Apr 22, 2016, 5:20:50 PM4/22/16
to Shiny - Web Framework for R, menne...@googlemail.com


Am Freitag, 22. April 2016 22:38:30 UTC+2 schrieb Joe Cheng [RStudio]:
The problem is that we're not able to automatically infer where this package's home is if you install it locally. If you install from github using:

devtools::install_github("dmenne/gastempt")

then try publishing to ShinyApps.io again, it should work.

Magic, magic. It works. I always thought that

URL: http://github.com/dmenne/gastempt

would do the work. Thanks, Joe

 

ishtiaque hussain

unread,
Oct 15, 2016, 3:34:27 PM10/15/16
to Shiny - Web Framework for R, menne...@googlemail.com
Hi, 

I have a similar problem. I'm trying to upload my application on ShinyApps that uses a locally built package called CBCPro. I get the following error message:

Error: Unable to retrieve package records for the following packages:
- 'CBCPro'
Execution halted

I tried to install using the following command:

devtools::install_local("<path to the directory where the package was built>", force = TRUE)

I see it was installed successfully, but when I now try to deploy my app again, I still get the same error message. 

Could you please help?

Thanks,
--Ishti

ishtiaque hussain

unread,
Oct 16, 2016, 2:16:50 AM10/16/16
to Shiny - Web Framework for R, menne...@googlemail.com
Ok, I just figured out that I need to upload my files to github to get this going. Done it and following your instructions, it worked like charm!! Thanks.
--Ishti

Thushan Dharmawardana

unread,
Jun 12, 2017, 2:25:32 AM6/12/17
to Shiny - Web Framework for R, menne...@googlemail.com

Hi , 

I have a problem installing the RDCOMClient package in this way . 

Downloading GitHub repo omegahat/RDCOMClient@master
Installing RDCOMClient
"C:/PROGRA~1/R/R-33~1.2/bin/x64/R" --no-site-file --no-environ --no-save  \
  --no-restore --quiet CMD INSTALL  \
  "C:/Users/thushanDh/AppData/Local/Temp/RtmpyqIeYx/devtools276060082bf8/omegahat-RDCOMClient-a4d1c94"  \
  --library="C:/Users/thushanDh/Documents/R/win-library/3.3" --install-tests 

* installing *source* package 'RDCOMClient' ...
** libs

*** arch - i386
C:/RBuildTools/3.4/mingw_32/bin/g++  -I"C:/PROGRA~1/R/R-33~1.2/include" -DNDEBUG -D_GNU_ -DNO_PYCOM_IPROVIDECLASSINFO -I.    -I"d:/Compiler/gcc-4.9.3/local330/include"  -Wno-deprecated    -O2 -Wall  -mtune=core2 -c COMError.cpp -o COMError.o
COMError.cpp:347:0: warning: "_countof" redefined
 #define _countof(array) (sizeof(array)/sizeof(array[0]))
 ^
In file included from C:/RBuildTools/3.4/mingw_32/i686-w64-mingw32/include/combaseapi.h:129:0,
                 from C:/RBuildTools/3.4/mingw_32/i686-w64-mingw32/include/objbase.h:14,
                 from C:/RBuildTools/3.4/mingw_32/i686-w64-mingw32/include/ole2.h:17,
                 from C:/RBuildTools/3.4/mingw_32/i686-w64-mingw32/include/wtypes.h:12,
                 from C:/RBuildTools/3.4/mingw_32/i686-w64-mingw32/include/winscard.h:10,
                 from C:/RBuildTools/3.4/mingw_32/i686-w64-mingw32/include/windows.h:97,
                 from RCOMObject.h:23,
                 from COMError.cpp:1:
C:/RBuildTools/3.4/mingw_32/i686-w64-mingw32/include/stdlib.h:299:0: note: this is the location of the previous definition
 #define _countof(_Array) sizeof(*__countof_helper(_Array))
 ^
In file included from COMError.cpp:1:0:
RCOMObject.h: In member function 'virtual ULONG RCOMObject::Release()':
RCOMObject.h:61:50: warning: deleting object of abstract class type 'RCOMObject' which has non-virtual destructor will cause undefined behaviour [-Wdelete-non-virtual-dtor]
                                           delete this;
                                                  ^
COMError.cpp: In function 'void GetScodeString(HRESULT, LPTSTR, int)':
COMError.cpp:371:39: warning: format '%x' expects argument of type 'unsigned int', but argument 3 has type 'HRESULT {aka long int}' [-Wformat=]
  sprintf(buf, ("OLE error 0x%08x"), hr);
                                       ^
COMError.cpp: In function 'HRESULT checkErrorInfo(IUnknown*, HRESULT, SEXPREC**)':
COMError.cpp:409:51: warning: format '%X' expects argument of type 'unsigned int', but argument 3 has type 'HRESULT {aka long int}' [-Wformat=]
   fprintf(stderr, "<checkErrorInfo> %X \n", status);
                                                   ^
C:/RBuildTools/3.4/mingw_32/bin/gcc  -I"C:/PROGRA~1/R/R-33~1.2/include" -DNDEBUG -D_GNU_ -DNO_PYCOM_IPROVIDECLASSINFO -I.    -I"d:/Compiler/gcc-4.9.3/local330/include"     -O3 -Wall  -std=gnu99 -mtune=core2 -c RUtils.c -o RUtils.o
C:/RBuildTools/3.4/mingw_32/bin/g++  -I"C:/PROGRA~1/R/R-33~1.2/include" -DNDEBUG -D_GNU_ -DNO_PYCOM_IPROVIDECLASSINFO -I.    -I"d:/Compiler/gcc-4.9.3/local330/include"  -Wno-deprecated    -O2 -Wall  -mtune=core2 -c connect.cpp -o connect.o
connect.cpp: In function 'HRESULT R_getCOMArgs(SEXP, DISPPARAMS*, DISPID*, int, int*)':
connect.cpp:405:10: warning: variable 'hr' set but not used [-Wunused-but-set-variable]
  HRESULT hr;
          ^
C:/RBuildTools/3.4/mingw_32/bin/g++  -I"C:/PROGRA~1/R/R-33~1.2/include" -DNDEBUG -D_GNU_ -DNO_PYCOM_IPROVIDECLASSINFO -I.    -I"d:/Compiler/gcc-4.9.3/local330/include"  -Wno-deprecated    -O2 -Wall  -mtune=core2 -c converters.cpp -o converters.o
In file included from converters.cpp:1:0:
RCOMObject.h: In member function 'virtual ULONG RCOMObject::Release()':
RCOMObject.h:61:50: warning: deleting object of abstract class type 'RCOMObject' which has non-virtual destructor will cause undefined behaviour [-Wdelete-non-virtual-dtor]
                                           delete this;
                                                  ^
converters.cpp: In function 'SEXPREC* R_convertDCOMObjectToR(VARIANT*)':
converters.cpp:365:11: warning: variable 'hr' set but not used [-Wunused-but-set-variable]
   HRESULT hr;
           ^
C:/RBuildTools/3.4/mingw_32/bin/g++ -shared -s -static-libgcc -o RDCOMClient.dll tmp.def COMError.o RUtils.o connect.o converters.o -lole32 -loleaut32 -luuid -Ld:/Compiler/gcc-4.9.3/local330/lib/i386 -Ld:/Compiler/gcc-4.9.3/local330/lib -LC:/PROGRA~1/R/R-33~1.2/bin/i386 -lR
COMError.o:COMError.cpp:(.text+0x2b3): undefined reference to `vtable for RCOMObject'
COMError.o:COMError.cpp:(.text+0x4c3): undefined reference to `vtable for RCOMObject'
COMError.o:COMError.cpp:(.text$_ZN10RCOMObject7ReleaseEv+0x19): undefined reference to `vtable for RCOMObject'
converters.o:converters.cpp:(.text+0x175d): undefined reference to `vtable for RCOMObject'
collect2.exe: error: ld returned 1 exit status
no DLL was created
ERROR: compilation failed for package 'RDCOMClient'
* removing 'C:/Users/thushanDh/Documents/R/win-library/3.3/RDCOMClient'
* restoring previous 'C:/Users/thushanDh/Documents/R/win-library/3.3/RDCOMClient'
Error: Command failed (1)

I have the same issue when deploying the shiny app in shinyapps.io 

Preparing to deploy application...DONE
Uploading bundle for application: 188201...
Error: Unable to retrieve package records for the following packages:
- "RDCOMClient"

Thank you in advance for your help .. 
Reply all
Reply to author
Forward
0 new messages