Can't Use Either View() or Edit() Functions, Getting "Error in .External2(C_Dataviewer, X, Title):Invalid Device" Error Message

Can't use either View() or edit() functions, getting Error in .External2(C_dataviewer, x, title) : invalid device error message

The problem might be your locale settings. Run command 'locale' from terminal and see if there are any lines with something else but 'C' locale. For example, in my case output is like this:

macbook:foo user$ locale
LANG=
LC_COLLATE="C"
LC_CTYPE="UTF-8"
LC_MESSAGES="C"
LC_MONETARY="C"
LC_NUMERIC="C"
LC_TIME="C"
LC_ALL=

Easiest way to solve this is to set the locale to be C for just the R process ie. run R from terminal session with command 'LC_CTYPE=C R' instead of just 'R'. At least on OS/X 10.6.8 this gets rid of the error messages and allows R to display the edit window.

RStudio on Mac OS X 10.13 getting X11 is not available error when trying to use fix()

Putting this as an answer in case other find this.

This particular issue was due to using Homebrew R on macOS which (at the time of this Q) didn't compile with X11 support.

I should have had the OP execute capabilities() first. That would have displayed something like:

##       jpeg         png        tiff       tcltk         X11        aqua    http/ftp 
## TRUE TRUE TRUE TRUE TRUE TRUE TRUE
## sockets libxml fifo cledit iconv NLS profmem
## TRUE TRUE TRUE TRUE TRUE TRUE TRUE
## cairo ICU long.double libcurl
## TRUE TRUE TRUE TRUE

If X11 is FALSE, then you have an R installation w/o support for X11 and should use the macOS R distribution from CRAN.

Polling an access database inside a non-dedicated windows server

its mentioned here

Easy Background Tasks in ASP.NET

here are some snippets from that link

private static CacheItemRemovedCallback OnCacheRemove = null;

protected void Application_Start(object sender, EventArgs e)
{
AddTask("DoStuff", 60);
}

private void AddTask(string name, int seconds)
{
OnCacheRemove = new CacheItemRemovedCallback(CacheItemRemoved);
HttpRuntime.Cache.Insert(name, seconds, null,
DateTime.Now.AddSeconds(seconds), Cache.NoSlidingExpiration,
CacheItemPriority.NotRemovable, OnCacheRemove);
}

public void CacheItemRemoved(string k, object v, CacheItemRemovedReason r)
{
// do stuff here if it matches our taskname, like WebRequest
// re-add our task so it recurs
AddTask(k, Convert.ToInt32(v));
}

Works well in my testing; badges are awarded every 60 seconds like clockwork for all >users - Jeff Atwood



Related Topics



Leave a reply



Submit