Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

New release needed for 4.0 support, please #52

Open
NVargP opened this issue Oct 1, 2020 · 6 comments
Open

New release needed for 4.0 support, please #52

NVargP opened this issue Oct 1, 2020 · 6 comments

Comments

@NVargP
Copy link

NVargP commented Oct 1, 2020

Hello,

In issue #48 compatibility with 4.0 was addressed, it looks like code was merged into master. However there has been no release since then, could you please do a new release including compatibility with 4.0 ?

English is not my first language, sorry for any mistakes.

Thank you.

@jmp75
Copy link
Collaborator

jmp75 commented Oct 3, 2020

I started the release process last month but had issues with unit tests not passing.

I've had limited time for open source lately due to health and work reasons; I'll see if I can release r.net and rclr with enough confidence these failing unit tests are spurious artefacts.

@NVargP
Copy link
Author

NVargP commented Oct 5, 2020

Thank you, hope your health improves soon! I very much appreciate the effort, rClr is fantastic. Thank you for this great code, it is a life saver.

@UnclAlDeveloper
Copy link

Hi J-M,

I hope you are feeling better.

I'm adding this here rather than as a separate issue as it is related. I am trying to install the testing branch of the package to see if it works with 4.0. However when I try to install it from github it breaks down during compilation with the following error:

Error: package or namespace load failed for 'rClr': .onLoad failed in loadNamespace() for 'rClr', details: call: fun(libname, pkgname) error: rClr library .NET framework not found - looked under C:/Users/Graeme/AppData/Local/Temp/RtmpaQsHrE/Rinst2c3c7b497a5d/00LOCK-rClr/00new/rClr/libs//x64 but not found in Error: loading failed Execution halted

I have run the setup_vcpp.cmd, and 'where msbuild' works. I tried installing both from the R prompt and from the Command prompt. The full output is as follows:

`

devtools::install_github("rdotnet/rClr@testing", build_vignettes=TRUE)
Downloading GitHub repo rdotnet/rClr@testing
checking for file 'C:\Users\Graeme\AppData\Local\Temp\RtmpmqyzQ6\remotes13e44533bc2\rdotnet-rClr-b637bbc/DESCRIPTION'v checking for file 'C:\Users\Graeme\AppData\Local\Temp\RtmpmqyzQ6\remotes13e44533bc2\rdotnet-rClr-b637bbc/DESCRIPTION' (449ms)

  • preparing 'rClr': (466ms)
    v checking DESCRIPTION meta-information ...

  • cleaning src

  • running 'cleanup.win'

  • installing the package to build vignettes (4.3s)
    -----------------------------------

  • installing source package 'rClr' ...
    ** using staged installation
    warning: Path to the Mono SDK not found by querying the Windows registry. Mono support will be disabled
    R_HOME=c:/PROGRA1/R/R-401.3
    MSBuild.exe


    ** Visual Studio 2019 Developer Command Prompt v16.3.8
    ** Copyright (c) 2019 Microsoft Corporation


    'lib' is not recognized as an internal or external command,
    operable program or batch file.
    'lib' is not recognized as an internal or external command,
    operable program or batch file.
    'lib' is not recognized as an internal or external command,
    operable program or batch file.
    ** libs
    running 'src/Makefile.win' ...
    Variable information only for diagnosis purposes
    Windows architecture /x64
    env variable TEMP is /c/Users/Graeme/AppData/Local/Temp
    env variable TMP is /c/Users/Graeme/AppData/Local/Temp
    BuildConfiguration=Release
    BuildMonoSupport=False
    Mono Build configuration MonoInstall
    R_ARCH=/x64
    OBJECTS=
    SHLIB_EXT=
    CC=cc
    CXX=g++
    ALL_CFLAGS=
    ALL_CPPFLAGS=
    build cmd line: MSBuild.exe rClr.sln //t:Build //p:Configuration=Release //p:Platform=replaced_tgt_platform //p:VisualStudioVersion=12.0 //consoleloggerparameters:ErrorsOnly
    END Variable
    nuget.exe restore rClr.sln ;
    sh: nuget.exe: command not found
    make: [Makefile.win:73: rClrNugetRestore] Error 127 (ignored)
    Microsoft (R) Build Engine version 16.3.2+e481bbf88 for .NET Framework
    Copyright (C) Microsoft Corporation. All rights reserved.

    Building the projects in this solution one at a time. To enable parallel build, please add the "-m" switch.
    TRACKER : error TRK0005: Failed to locate: "CL.exe". The system cannot find the file specified. [C:\Users\Graeme\AppData\Local\Temp\RtmpeSF3YV\Rbuild5a3053763eee\rClr\src\rClr.vcxproj]
    C:\Program Files\dotnet\sdk\3.0.100\Sdks\Microsoft.NET.Sdk\targets\Microsoft.PackageDependencyResolution.targets(234,5): error NETSDK1004: Assets file 'C:\Users\Graeme\AppData\Local\Temp\RtmpeSF3YV\Rbuild5a3053763eee\rClr\src\ClrFacade\obj\project.assets.json' not found. Run a NuGet package restore to generate this file. [C:\Users\Graeme\AppData\Local\Temp\RtmpeSF3YV\Rbuild5a3053763eee\rClr\src\ClrFacade\ClrFacade.csproj]
    C:\Program Files\dotnet\sdk\3.0.100\Sdks\Microsoft.NET.Sdk\targets\Microsoft.NET.TargetFrameworkInference.targets(127,5): error NETSDK1045: The current .NET SDK does not support targeting .NET Core 3.1. Either target .NET Core 3.0 or lower, or use a version of the .NET SDK that supports .NET Core 3.1. [C:\Users\Graeme\AppData\Local\Temp\RtmpeSF3YV\Rbuild5a3053763eee\rClr\src\RclrTests\RclrTests.csproj]
    Microsoft (R) Build Engine version 16.3.2+e481bbf88 for .NET Framework
    Copyright (C) Microsoft Corporation. All rights reserved.

    Building the projects in this solution one at a time. To enable parallel build, please add the "-m" switch.
    TRACKER : error TRK0005: Failed to locate: "CL.exe". The system cannot find the file specified. [C:\Users\Graeme\AppData\Local\Temp\RtmpeSF3YV\Rbuild5a3053763eee\rClr\src\rClr.vcxproj]
    C:\Program Files\dotnet\sdk\3.0.100\Sdks\Microsoft.NET.Sdk\targets\Microsoft.PackageDependencyResolution.targets(234,5): error NETSDK1004: Assets file 'C:\Users\Graeme\AppData\Local\Temp\RtmpeSF3YV\Rbuild5a3053763eee\rClr\src\ClrFacade\obj\project.assets.json' not found. Run a NuGet package restore to generate this file. [C:\Users\Graeme\AppData\Local\Temp\RtmpeSF3YV\Rbuild5a3053763eee\rClr\src\ClrFacade\ClrFacade.csproj]
    r_architecture=x64;
    RCLRBINDIR=./x64/Release;
    bin_dir=$RCLRBINDIR;
    RCLRBINS="rClrMs.dll rClrMs.exp rClrMs.lib rClrMs.pdb" ;
    cmd //c win_cp.cmd $bin_dir ../inst/libs/$r_architecture/ $RCLRBINS;

    r_architecture=i386;
    RCLRBINDIR=./Release;
    bin_dir=$RCLRBINDIR;
    RCLRBINS="rClrMs.dll rClrMs.exp rClrMs.lib rClrMs.pdb" ;
    cmd //c win_cp.cmd $bin_dir ../inst/libs/$r_architecture/ $RCLRBINS;

    bin_dir=./MonoInstall;
    RCLRBINS="$bin_dir/rClrMono.dll $bin_dir/rClrMono.exp $bin_dir/rClrMono.lib $bin_dir/rClrMono.pdb" ;
    if [ "False" = "True" ] ; then cmd //c win_cp.cmd $RCLRBINS ../inst/libs/i386/ ; fi ;
    cmd //c win_cp.cmd ./ClrFacade/bin/Release/netstandard2.0/ ../inst/libs/ ClrFacade.*

    cmd //c win_cp.cmd ./ClrFacade/bin/Release/netstandard2.0/ ../inst/libs/ RDotNet.* DynamicInterop.*

    ** R
    ** inst
    ** byte-compile and prepare package for lazy loading
    ** help
    *** installing help indices
    converting help for package 'rClr'
    finding HTML links ... done
    clrCall html
    clrCallStatic html
    clrCobj html
    clrGet html
    clrGetConstructors html
    clrGetEnumNames html
    clrGetExtPtr html
    clrGetFields html
    clrGetInnerPkgName html
    clrGetLoadedAssemblies html
    clrGetMemberSignature html
    clrGetMethods html
    clrGetNativeLibName html
    clrGetProperties html
    clrGetStaticFields html
    clrGetStaticMemberSignature html
    clrGetStaticMembers html
    clrGetStaticMethods html
    clrGetStaticProperties html
    clrGetType html
    clrGetTypesInAssembly html
    clrInit html
    clrIs html
    clrLoadAssembly html
    clrNew html
    clrReflect html
    clrSet html
    clrSetEnumProperty html
    clrShutdown html
    clrToString html
    clrTraceback html
    clrTypeNameExtPtr html
    clrTypename html
    clrVT html
    dotOnAttach html
    dotOnLoad html
    getClrVersionString html
    getCurrentConvertedObject html
    getNativeLibsPath html
    getSexpType html
    inspectArgs html
    mkClrObjRef html
    peekClrArgs html
    rClr-package html
    rToClrType html
    setClrRefClass html
    setConvertAdvancedTypes html
    setRDotNet html
    ** building package indices
    ** installing vignettes
    ** testing if installed package can be loaded from temporary location
    Error: package or namespace load failed for 'rClr':
    .onLoad failed in loadNamespace() for 'rClr', details:
    call: fun(libname, pkgname)
    error: rClr library .NET framework not found - looked under C:/Users/Graeme/AppData/Local/Temp/RtmpeSF3YV/Rinst5a301c7e1823/00LOCK-rClr/00new/rClr/libs//x64 but not found in
    Error: loading failed
    Execution halted
    ERROR: loading failed

  • removing 'C:/Users/Graeme/AppData/Local/Temp/RtmpeSF3YV/Rinst5a301c7e1823/rClr'
    -----------------------------------
    ERROR: package installation failed
    Error: Failed to install 'rClr' from GitHub:
    System command 'Rcmd.exe' failed, exit status: 1, stdout + stderr (last 10 lines):
    E> Error: package or namespace load failed for 'rClr':
    E> .onLoad failed in loadNamespace() for 'rClr', details:
    E> call: fun(libname, pkgname)
    E> error: rClr library .NET framework not found - looked under C:/Users/Graeme/AppData/Local/Temp/RtmpeSF3YV/Rinst5a301c7e1823/00LOCK-rClr/00new/rClr/libs//x64 but not found in
    E> Error: loading failed
    E> Execution halted
    E> ERROR: loading failed
    E> * removing 'C:/Users/Graeme/AppData/Local/Temp/RtmpeSF3YV/Rinst5a301c7e1823/rClr'
    E> -----------------------------------
    E> ERROR: package installation failed
    `

@yurymaisiayonak
Copy link

Hello! Please tell me if there are any plans to release rClr and its support for R version 4.0

@PavelBal
Copy link

rClr_0.9.1.zip

This release will soon be available on this fork of rClr:

https://github.com/Open-Systems-Pharmacology/rClr/releases

@PavelBal
Copy link

A new package rSharp, based on rClr, now supports latest R versions and .NET 8: https://github.com/Open-Systems-Pharmacology/rSharp

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

No branches or pull requests

5 participants