From wewol@ki @ending from gm@il@com  Fri Oct  5 10:01:34 2018
From: wewol@ki @ending from gm@il@com (Witold E Wolski)
Date: Fri, 5 Oct 2018 10:01:34 +0200
Subject: [Rd] unable to load shared object
In-Reply-To: <CAErODj9HMDaOxp3VKgHhxaV2ZB9rR3T0=Zm-V5D_ihjeH-aZxA@mail.gmail.com>
References: <CAAjnpdg3+ZASotVACBNAwj-vHuptEEUHAvHb5uJ0yhtVxaXMHw@mail.gmail.com>
 <CAErODj9HMDaOxp3VKgHhxaV2ZB9rR3T0=Zm-V5D_ihjeH-aZxA@mail.gmail.com>
Message-ID: <CAAjnpdihqgoCc=o9ObhQd+TQudvJ7RosTA-3YvT=Jm=om+jjFg@mail.gmail.com>

Thanks for asking.

The path where R tries to load the dll from does not exist I think (or
the install process deletes it after the error - might this be the
case?):
C:/Users/wewol/OneDrive/Documents/R/win-library/3.5/grpc/libs/x64/grpc.dll'

When I am checking after the error that path is only valid up to:
C:/Users/wewol/OneDrive/Documents/R/win-library/3.5/

So maybe (?) the install process wrongly assums that the package is
installed (but it never was) and than it executes
** testing if installed package can be loaded

To run into the error.

Error: package or namespace load failed for 'grpc' in inDL(x,
as.logical(local), as.logical(now), ...):
 unable to load shared object
'C:/Users/wewol/OneDrive/Documents/R/win-library/3.5/grpc/libs/x64/grpc.dll':
  LoadLibrary failure:  The specified module could not be found.
On Fri, 5 Oct 2018 at 09:37, Paul Johnson <pauljohn32 at gmail.com> wrote:
>
> Greetings.
> Is it possible that Onedrive is causing trouble? Do other packages you build and install work well from that directory?
>
> Paul Johnson
> University of Kansas
>
> On Wed, Oct 3, 2018, 3:13 AM Witold E Wolski <wewolski at gmail.com> wrote:
>>
>> Hello,
>>
>> I am trying to install a package with some src files on windows (linux
>> install works fine). The sources seem to build, there is an *.dll in
>> the src folder but than the installation process fails with:
>>
>> ```
>> ** testing if installed package can be loaded
>> Error: package or namespace load failed for 'grpc' in inDL(x,
>> as.logical(local), as.logical(now), ...):
>>  unable to load shared object
>> 'C:/Users/wewol/OneDrive/Documents/R/win-library/3.5/grpc/libs/x64/grpc.dll':
>>   LoadLibrary failure:  The specified module could not be found.
>>
>> Error: loading failed
>> Execution halted
>> ```
>>
>> Do I need to point the installer to the *.dll in the src directory by
>> creating some special function (e.g. dyn.load) or creating some
>> special file?
>>
>> Help would be greatly appreciated:
>>
>> The packages sources are here:
>> https://github.com/wolski/grpc-1
>>
>> Witek
>>
>>
>> --
>> Witold Eryk Wolski
>>
>> ______________________________________________
>> R-devel at r-project.org mailing list
>> https://stat.ethz.ch/mailman/listinfo/r-devel



-- 
Witold Eryk Wolski



[Rd] unable to load shared object
Witold E Wolski