Quantcast
Channel: R.NET
Viewing all 1634 articles
Browse latest View live

Created Unassigned: Load a R Library in MVC app [157]

$
0
0
Hi all, i'm going mad due to a fail library load into a MVC app.

```
REngine.SetEnvironmentVariables();
REngine engine = REngine.GetInstance();

engine.Initialize();

engine.Evaluate(".libPaths('C:/Progetti Visual Studio/tool/tool/Content/R Library/')");
engine.Evaluate("library (RODBC)"); //ERROR HERE


```
Every time it reads that row an error occur:
__Error: package or namespace load failed for 'RODBC'__

Any solution?

I'm pretty new of mvc...

thanks in advance




Edited Unassigned: Load a R Library in MVC app [157]

$
0
0
Hi all, i'm going mad due to a fail library load into a MVC app.

```
REngine.SetEnvironmentVariables();
REngine engine = REngine.GetInstance();

engine.Initialize();

engine.Evaluate(".libPaths('C:/Progetti Visual Studio/tool/tool/Content/R Library/')");
engine.Evaluate("library (RODBC)"); //ERROR HERE


```
Every time it reads that row an error occur:
__Error: package or namespace load failed for 'RODBC'__

Any solution?

I'm pretty new of mvc...

thanks in advance


PS : I've tryed to follow the istructions on [this discussion](https://rdotnet.codeplex.com/discussions/572547)
> You have a very common problem with R running under IIS. If you add 'C:\Program Files\R\R-3.1.2\bin\i386' (or x64 if you are doing 64 bit) to your system path and restart Visual Studio or IIS then the RODBC package will load correctly. This is only for running under IIS and has to do with the DLL search paths under IIS while trying to find R's subordinate DLLs.
... but i could not understand how to do what this guy said


Edited Unassigned: Load a R Library in MVC app [157]

$
0
0
Hi all, i'm going mad due to a fail library load into a MVC app.

```
REngine.SetEnvironmentVariables();
REngine engine = REngine.GetInstance();

engine.Initialize();

engine.Evaluate(".libPaths('C:/Progetti Visual Studio/tool/tool/Content/R Library/')");
engine.Evaluate("library (RODBC)"); //ERROR HERE


```
Every time it reads that row an error occur:
__Error: package or namespace load failed for 'RODBC'__

Any solution?

I'm pretty new of mvc...

thanks in advance


PS : I've tryed to follow the istructions on [this discussion](https://rdotnet.codeplex.com/discussions/572547) ... but i could not understand how to do what this guy said
> You have a very common problem with R running under IIS. If you add 'C:\Program Files\R\R-3.1.2\bin\i386' (or x64 if you are doing 64 bit) to your system path and restart Visual Studio or IIS then the RODBC package will load correctly. This is only for running under IIS and has to do with the DLL search paths under IIS while trying to find R's subordinate DLLs.
>



Commented Unassigned: Load a R Library in MVC app [157]

$
0
0
Hi all, i'm going mad due to a fail library load into a MVC app.

```
REngine.SetEnvironmentVariables();
REngine engine = REngine.GetInstance();

engine.Initialize();

engine.Evaluate(".libPaths('C:/Progetti Visual Studio/tool/tool/Content/R Library/')");
engine.Evaluate("library (RODBC)"); //ERROR HERE


```
Every time it reads that row an error occur:
__Error: package or namespace load failed for 'RODBC'__

Any solution?

I'm pretty new of mvc...

thanks in advance


PS : I've tryed to follow the istructions on [this discussion](https://rdotnet.codeplex.com/discussions/572547) ... but i could not understand how to do what this guy said
> You have a very common problem with R running under IIS. If you add 'C:\Program Files\R\R-3.1.2\bin\i386' (or x64 if you are doing 64 bit) to your system path and restart Visual Studio or IIS then the RODBC package will load correctly. This is only for running under IIS and has to do with the DLL search paths under IIS while trying to find R's subordinate DLLs.
>



Comments: Here's some help on how to set the path: http://www.computerhope.com/issues/ch000549.htm

Commented Unassigned: Load a R Library in MVC app [157]

$
0
0
Hi all, i'm going mad due to a fail library load into a MVC app.

```
REngine.SetEnvironmentVariables();
REngine engine = REngine.GetInstance();

engine.Initialize();

engine.Evaluate(".libPaths('C:/Progetti Visual Studio/tool/tool/Content/R Library/')");
engine.Evaluate("library (RODBC)"); //ERROR HERE


```
Every time it reads that row an error occur:
__Error: package or namespace load failed for 'RODBC'__

Any solution?

I'm pretty new of mvc...

thanks in advance


PS : I've tryed to follow the istructions on [this discussion](https://rdotnet.codeplex.com/discussions/572547) ... but i could not understand how to do what this guy said
> You have a very common problem with R running under IIS. If you add 'C:\Program Files\R\R-3.1.2\bin\i386' (or x64 if you are doing 64 bit) to your system path and restart Visual Studio or IIS then the RODBC package will load correctly. This is only for running under IIS and has to do with the DLL search paths under IIS while trying to find R's subordinate DLLs.
>



Comments: Still give me the same error

Commented Unassigned: Load a R Library in MVC app [157]

$
0
0
Hi all, i'm going mad due to a fail library load into a MVC app.

```
REngine.SetEnvironmentVariables();
REngine engine = REngine.GetInstance();

engine.Initialize();

engine.Evaluate(".libPaths('C:/Progetti Visual Studio/tool/tool/Content/R Library/')");
engine.Evaluate("library (RODBC)"); //ERROR HERE


```
Every time it reads that row an error occur:
__Error: package or namespace load failed for 'RODBC'__

Any solution?

I'm pretty new of mvc...

thanks in advance


PS : I've tryed to follow the istructions on [this discussion](https://rdotnet.codeplex.com/discussions/572547) ... but i could not understand how to do what this guy said
> You have a very common problem with R running under IIS. If you add 'C:\Program Files\R\R-3.1.2\bin\i386' (or x64 if you are doing 64 bit) to your system path and restart Visual Studio or IIS then the RODBC package will load correctly. This is only for running under IIS and has to do with the DLL search paths under IIS while trying to find R's subordinate DLLs.
>



Comments: Did you install the ODBC package?

Commented Unassigned: Load a R Library in MVC app [157]

$
0
0
Hi all, i'm going mad due to a fail library load into a MVC app.

```
REngine.SetEnvironmentVariables();
REngine engine = REngine.GetInstance();

engine.Initialize();

engine.Evaluate(".libPaths('C:/Progetti Visual Studio/tool/tool/Content/R Library/')");
engine.Evaluate("library (RODBC)"); //ERROR HERE


```
Every time it reads that row an error occur:
__Error: package or namespace load failed for 'RODBC'__

Any solution?

I'm pretty new of mvc...

thanks in advance


PS : I've tryed to follow the istructions on [this discussion](https://rdotnet.codeplex.com/discussions/572547) ... but i could not understand how to do what this guy said
> You have a very common problem with R running under IIS. If you add 'C:\Program Files\R\R-3.1.2\bin\i386' (or x64 if you are doing 64 bit) to your system path and restart Visual Studio or IIS then the RODBC package will load correctly. This is only for running under IIS and has to do with the DLL search paths under IIS while trying to find R's subordinate DLLs.
>



Comments: ...using the app pool identity for IIS?

Commented Unassigned: Load a R Library in MVC app [157]

$
0
0
Hi all, i'm going mad due to a fail library load into a MVC app.

```
REngine.SetEnvironmentVariables();
REngine engine = REngine.GetInstance();

engine.Initialize();

engine.Evaluate(".libPaths('C:/Progetti Visual Studio/tool/tool/Content/R Library/')");
engine.Evaluate("library (RODBC)"); //ERROR HERE


```
Every time it reads that row an error occur:
__Error: package or namespace load failed for 'RODBC'__

Any solution?

I'm pretty new of mvc...

thanks in advance


PS : I've tryed to follow the istructions on [this discussion](https://rdotnet.codeplex.com/discussions/572547) ... but i could not understand how to do what this guy said
> You have a very common problem with R running under IIS. If you add 'C:\Program Files\R\R-3.1.2\bin\i386' (or x64 if you are doing 64 bit) to your system path and restart Visual Studio or IIS then the RODBC package will load correctly. This is only for running under IIS and has to do with the DLL search paths under IIS while trying to find R's subordinate DLLs.
>



Comments: > Did you install the ODBC package? Yes I did. I have a full running console app with RODBC lib with the same call as the code above. Regard pp pool identity for IIS what exactly do you mean?

Commented Unassigned: Load a R Library in MVC app [157]

$
0
0
Hi all, i'm going mad due to a fail library load into a MVC app.

```
REngine.SetEnvironmentVariables();
REngine engine = REngine.GetInstance();

engine.Initialize();

engine.Evaluate(".libPaths('C:/Progetti Visual Studio/tool/tool/Content/R Library/')");
engine.Evaluate("library (RODBC)"); //ERROR HERE


```
Every time it reads that row an error occur:
__Error: package or namespace load failed for 'RODBC'__

Any solution?

I'm pretty new of mvc...

thanks in advance


PS : I've tryed to follow the istructions on [this discussion](https://rdotnet.codeplex.com/discussions/572547) ... but i could not understand how to do what this guy said
> You have a very common problem with R running under IIS. If you add 'C:\Program Files\R\R-3.1.2\bin\i386' (or x64 if you are doing 64 bit) to your system path and restart Visual Studio or IIS then the RODBC package will load correctly. This is only for running under IIS and has to do with the DLL search paths under IIS while trying to find R's subordinate DLLs.
>



Comments: Your IIS application runs under an application pool user. Since R (typically) installs packages under the user account, you'd need to make sure that you've installed the RODBC package as that user. When you installed via the console app, you probably run under the local user, ie: the logged in user - you! To verify that RODBC is installed, you can execute the R code in your application for listing packages, "installed.packages()" and examine the console device output. To see the paths that R is searching, you can execute the R code ".libPaths()" and examine the console device output. I think you'll be able to track down the issue with those command.

New Post: R.NET and Regex

Commented Unassigned: Load a R Library in MVC app [157]

$
0
0
Hi all, i'm going mad due to a fail library load into a MVC app.

```
REngine.SetEnvironmentVariables();
REngine engine = REngine.GetInstance();

engine.Initialize();

engine.Evaluate(".libPaths('C:/Progetti Visual Studio/tool/tool/Content/R Library/')");
engine.Evaluate("library (RODBC)"); //ERROR HERE


```
Every time it reads that row an error occur:
__Error: package or namespace load failed for 'RODBC'__

Any solution?

I'm pretty new of mvc...

thanks in advance


PS : I've tryed to follow the istructions on [this discussion](https://rdotnet.codeplex.com/discussions/572547) ... but i could not understand how to do what this guy said
> You have a very common problem with R running under IIS. If you add 'C:\Program Files\R\R-3.1.2\bin\i386' (or x64 if you are doing 64 bit) to your system path and restart Visual Studio or IIS then the RODBC package will load correctly. This is only for running under IIS and has to do with the DLL search paths under IIS while trying to find R's subordinate DLLs.
>



Comments: Done, I misunderstand the system path replacement. Thanks for the help

Commented Unassigned: Load a R Library in MVC app [157]

$
0
0
Hi all, i'm going mad due to a fail library load into a MVC app.

```
REngine.SetEnvironmentVariables();
REngine engine = REngine.GetInstance();

engine.Initialize();

engine.Evaluate(".libPaths('C:/Progetti Visual Studio/tool/tool/Content/R Library/')");
engine.Evaluate("library (RODBC)"); //ERROR HERE


```
Every time it reads that row an error occur:
__Error: package or namespace load failed for 'RODBC'__

Any solution?

I'm pretty new of mvc...

thanks in advance


PS : I've tryed to follow the istructions on [this discussion](https://rdotnet.codeplex.com/discussions/572547) ... but i could not understand how to do what this guy said
> You have a very common problem with R running under IIS. If you add 'C:\Program Files\R\R-3.1.2\bin\i386' (or x64 if you are doing 64 bit) to your system path and restart Visual Studio or IIS then the RODBC package will load correctly. This is only for running under IIS and has to do with the DLL search paths under IIS while trying to find R's subordinate DLLs.
>



Comments: Cool. Glad it got sorted out. Come back if you need anymore help.

Commented Issue: resizing plots generated from console using R.Net causes application to crash [153]

$
0
0
See http://stackoverflow.com/questions/27612311/resizing-plots-generated-using-r-net-causes-application-to-crash
Comments: Moving to github so I can add inline images. https://github.com/jmp75/rdotnet/issues/10

New Post: R.NET and Regex

$
0
0
After de-escaping, running that code in RTerm gives me the following error:

Error: '(' is an unrecognized escape in character string starting "http[s]?://(?:[a-zA-Z]|[0-9]|[$-_http[s]?://(?:[a-zA-Z]|[0-9]|[$-_http[s]?://(?:[a-zA-Z]|[0-9]|[$-_http[s]?://(?:[a-zA-Z]|[0-9]|[$-_@.&+]|[!*\(" I can also see that error message in RDotNet before the crash.


So, I think there are two separate issues here, one is the error in the regex. The other is the access violation. If you fix the escape error, the crash goes away. In looking at R under gdb, the crash is something we need to look into, but I think you can ignore it for now.

New Post: RDotNet.EvaluationException is not functional under iis7

$
0
0
Hi,

When the page is executed in the website in IIS7, it generates below error


RDotNet.EvaluationException: Error in if (nobs != ndata) data <- if (NCOL(data) == 1) { :
missing value where TRUE/FALSE needed
at RDotNet.Function.evaluateCall(IntPtr call)



When the page is executed in debug mode in visual studio without any breakpoint my code runs perfectly.

New Post: RDotNet.EvaluationException is not functional under iis7

$
0
0
I really want to help you, but I can't understand what you are asking, nor do I know how to reproduce your fault.

StackOverflow has a great guide to asking good questions. You can read it here: http://stackoverflow.com/help/how-to-ask

Please take a look at it and try asking your question again.

Commented Unassigned: R.net is not functional under iis7 [156]

$
0
0
Hi

We have installed R engine 3.1.2 on IIS7 on windows 2008R2 32 bit.

When the page is executed in the website in IIS7, it generates "This Page can't be displayed". Many times it stops the application pool but not always.

When the page is executed in debug mode in visual studio without any breakpoint, it just closes the page.

When the page is executed in debug mode in visual studio in single stepping at REngine.GetInstance, it generates error "Function Evaluation timeout".

Any idea how to solve this issue.

bool is64Bit = Environment.Is64BitProcess;
string archFolder = is64Bit ? @"\x64" : @"\i386";
string rPath = @"C:\Program Files\R\R-3.1.2\bin" + archFolder;
string rHome = @"C:\Program Files\R\R-3.1.2";
REngine.SetEnvironmentVariables(rPath, rHome);

REngine engine = REngine.GetInstance();

Kartik Patel
Comments: Given your other post, I assume that this is resolved for you?

Commented Unassigned: R.net is not functional under iis7 [156]

$
0
0
Hi

We have installed R engine 3.1.2 on IIS7 on windows 2008R2 32 bit.

When the page is executed in the website in IIS7, it generates "This Page can't be displayed". Many times it stops the application pool but not always.

When the page is executed in debug mode in visual studio without any breakpoint, it just closes the page.

When the page is executed in debug mode in visual studio in single stepping at REngine.GetInstance, it generates error "Function Evaluation timeout".

Any idea how to solve this issue.

bool is64Bit = Environment.Is64BitProcess;
string archFolder = is64Bit ? @"\x64" : @"\i386";
string rPath = @"C:\Program Files\R\R-3.1.2\bin" + archFolder;
string rHome = @"C:\Program Files\R\R-3.1.2";
REngine.SetEnvironmentVariables(rPath, rHome);

REngine engine = REngine.GetInstance();

Kartik Patel
Comments: yes. my problem is resolved thanks for help.

Reviewed: R.NET 1.5.19 (NuGet) (ene 29, 2015)

$
0
0
Rated 5 Stars (out of 5) - SDAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA

New Post: R.NET and Twitter Searches

$
0
0
Hi guys,
I have a script which execute a Twitter Search, and it is working just fine, when running in console.

When running in a console, I get the following message:

[1]"Using direct authentication"
Use a local file to cache OAuth access credentials between R sessions?
1: Yes
2: No

Where I can select an option and continue making searches.

Now: When I migrated this to a class library, it stopped working. The reason is that it will still ask me this question, but I cannot type any answer in that case.

The question is: Is there a way to bypass that using R.NET? Of course this might not be related to this library directly, but perhaps you have an idea about how to do it.

Thanks!
Viewing all 1634 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>