Giter Site home page Giter Site logo

dotnet-client-library's Introduction

.NET Client Library for DeployR

The DeployR API exposes a wide range of R analytics services to client application developers. These services are exposed using standards based JSON/XML and are delivered by the DeployR server as Web services over HTTP(S).

The DeployR .NET client library is provided to simplify the integration of DeployR services within .NET client applications.

Links

Dependencies

Bundled DLL Dependencies

Besides the DeployR .NET library itself, DeployR<version>.dll, there are a number of 3rd party DLL file dependencies. These additional DLL file dependencies are provided for your convenience in the lib directory within this repository.

Building the .NET Client Library

The DeployR .NET Client Library is managed with Visual Studio 2013, using .NET Framework 4.5.1. The build.bat file at the root of this repository can be used to build the library

A successful build will result in the creation of DeployR-DotNet-Client-<version>.zip file containing the DeployR client library and it's dependencies. It will also create a DeployR.chm help file.

Please review the variables in the build.bat file and adjust as necessary for your environemnt

Examples

The DeployR .NET client library ships with a number of sample applications provided to demonstrate some of the key featues introduced by the Quick Start Tutorial for the .NET client library. See here for details.

Help

The DeoployR .NET help file is built with Sandcastle Help File Builder. The file "deployR.shfbproj", is a "Sandcastle Help File Builder" project file

Sandcastle Help File Builder

License

Copyright (C) 2010-2015 by Microsoft Corporation

This program is licensed to you under the terms of Version 2.0 of the Apache License. This program is distributed WITHOUT ANY EXPRESS OR IMPLIED WARRANTY, INCLUDING THOSE OF NON-INFRINGEMENT, MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE. Please refer to the Apache License 2.0 (http://www.apache.org/licenses/LICENSE-2.0) for more details.

dotnet-client-library's People

Contributors

dec100 avatar microsoft-github-policy-service[bot] avatar swells avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

dotnet-client-library's Issues

Execution History Call

Hi guys,

I've got some execution results saved on a project on our deployr enterprise server, however, I'm finding that the project.getHistory() call always results in an empty execution history list. The response to the http request (/r/project/execute/history) contains the data, but I believe its not being parsed correctly by the c# client library.

On line 308 of the RProjectExecutionImpl.cs file, it seems to be looking directly for the "history" node and ignoring its parent "execution" node.

Can you verify this please?

Serialization error due to invalid cast

Within the JSONSerialize class when RData.Type is of type "matrix", RData.Value, which is a List<List<double?>> was being cast to a List. This cast throws an exception. As I have never contributed to an open source project on GitHub, I have only made these changes locally and would appreciate a 2nd opinion to confirm this issue.
jsonserialize bug

Vector with one element returns "RNumeric", while vector with many elements returns "RNumericVector"

When getting the result of the generated objects, a vector with one element returns "RNumeric", while vector with many elements returns "RNumericVector". I believe both should return "RNumericVector".

In the R script I am type casting to vector:

newscale <- as.vector(results$par)

When I get the generated objects, I am having to check the type before I place the objects into a List.

RTaskToken rTaskToken = rBroker.submit(rTask);
RTaskResult rTaskResult = rTaskToken.getResult();
foreach (var rslt in rTaskResult.getGeneratedObjects())
{
    if (rslt.Name.ToLower().Equals("newscale"))
    {
        var rsltList = new List<double?>();
        if (rslt.RClass == "numeric" && rslt.Type == "primitive")
        {
            rsltList.Add((double?)rslt.Value);
        }
        else
        {
            rsltList = ((IEnumerable<double?>)rslt.Value).ToList();
        }
    }
}

Rename Repository?

I just noticed this repo on the first page of the Microsoft GitHub org, and this was the first thing that came to mind: “dotnet-client-library for what, exactly? Oh — it’s DeployR.” Do you think it would be possible to rename this repo to something like dotnet-deployr-client-library? Thanks!

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.