Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7174141
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T15:58:17+00:00 2026-05-28T15:58:17+00:00

I need to use Regression (Linear) in my application for that i am using

  • 0

I need to use Regression (Linear) in my application for that i am using R.Net.but when i am using the function lm() it’s showing an error “Error in the application.” but the same code will working in “R” is there any problem with my code or do i need to import any more packages?…

my code

 private void Form1_Load(object sender, EventArgs e)
    {
        REngine.SetDllDirectory(@"C:\Program Files\R\R-2.13.1\bin\i386");            
        REngine engine = REngine.CreateInstance("RDotNet");
        engine.Evaluate("WQ<-read.csv('c:\\Documents and Settings\\hardinmvarghese\\Desktop\\reg.csv')");
        engine.EagerEvaluate("rst <- lm(V1 ~ V2+V3+V4+V5,WQ)");

    }

if any one knows this please help me…

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-28T15:58:18+00:00Added an answer on May 28, 2026 at 3:58 pm

    Do you have read/write rights on that directory from .Net? Use a try catch block and check the Exception type and Message. Maybe its not something thats wrong the the REngine code.

    private void Form1_Load(object sender, EventArgs e)
    {
        try
        {
            REngine.SetDllDirectory(@"C:\Program Files\R\R-2.13.1\bin\i386");            
            REngine engine = REngine.CreateInstance("RDotNet");
            engine.Evaluate("WQ<-read.csv('c:\\Documents and Settings\\hardinmvarghese\\Desktop\\reg.csv')");
            engine.EagerEvaluate("rst <- lm(V1 ~ V2+V3+V4+V5,WQ)");
        }
        catch(Exception ex)
        {
            MessageBox.Show(ex.GetType().ToString() + " " + ex.Message);
        }
    
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I need to use an alias in the WHERE clause, but It keeps telling
I need to segment text using fullstops using PHP/Javascript.The problem is if I use
Need to use PGP/GnuPG to encrypt.can suggest what the Python packages to use that.
I modify asp.net Web Site. I need use different connection strings for users. Web
I'm trying to use Dependency attribute with using RegisterInstance . I've read that If
I'm working on a project that have the following need: use source ip address
I need change the background image, so I using: $('body').css({backgroundImage : 'url(images/wallpaper/'+wp+'.jpg)'}); But, I
I need use images in 2 .NET assemblies. One is WPF app {myApp.exe} and
We are using JBoss 4.2 GA, and need use a newest version in some
Need to use own imaged markers instead built-in pins. I have several questions. 1.

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.