Go 1.9

jmh530 via Digitalmars-d digitalmars-d at puremagic.com
Mon Jul 3 20:41:35 PDT 2017


On Friday, 30 June 2017 at 20:36:47 UTC, bachmeier wrote:
> On Tuesday, 27 June 2017 at 02:40:37 UTC, jmh530 wrote:
>> On Tuesday, 27 June 2017 at 02:38:31 UTC, bachmeier wrote:
>>>
>>> I'll post here after updating and testing the embedr package.
>>
>> Great. I'll give it a go again when it's ready.
>
> An update. It looks like I will be able to get all of my 
> research programs to work on Windows. It might be easier to use 
> D in R packages on Windows than to use C/C++/Fortran because 
> there is no need to mess with R tools, which many end users 
> find confusing. The final piece of the puzzle would be an LDC 
> installer for Windows that puts it in the path. Then it would 
> definitely be easier to use D than C/C++/Fortran.

I just gave it a try. Got an error. As far as I can tell, the 
problem is that my user name has a space in it 
(firstname[space]lastname).

> library(embedrwin)
> setwd("C:\\test\\")
> compile("librtest", 
> "C:\\D\\ldc2\\ldc2-1.3.0-beta1-win64-msvc\\bin")
[1] "\"C:\\D\\ldc2\\ldc2-1.3.0-beta1-win64-msvc\\bin\\ldmd2.exe\" 
-shared -m64 librtest.d 
C:/Users/firstname[space]lastname/Documents/R/win-library/3.3/embedrwin\\embedrwin\\r.d -version=inline R.lib"
[1] "Error: module firstname is in file 'C:\\Users\\firstname.d' 
which cannot be read"
[2] "import path[0] = 
C:\\D\\ldc2\\LDC2-1~1.0-B\\bin\\..\\import\\ldc"
[3] "import path[1] = C:\\D\\ldc2\\LDC2-1~1.0-B\\bin\\..\\import"
attr(,"status")
[1] 1
Error in inDL(x, as.logical(local), as.logical(now), ...) :
   unable to load shared object 'C:/test/librtest.dll':
   LoadLibrary failure:  The specified module could not be found.
In addition: Warning messages:
1: In file.copy(paste0(loc, "/embedr/R.lib"), getwd()) :
   problem copying 
C:\Users\firstname[space]lastname\Documents\R\win-library\3.3\embedrwin\embedr\R.lib to C:\test\R.lib: No such file or directory
2: running command 
'"C:\D\ldc2\ldc2-1.3.0-beta1-win64-msvc\bin\ldmd2.exe" -shared 
-m64 librtest.d 
C:/Users/firstname[space]lastname/Documents/R/win-library/3.3/embedrwin\embedrwin\r.d -version=inline R.lib' had status 1


More information about the Digitalmars-d mailing list