error while using distrubuted array in julia - julia

I am learning parallel computation for this
want to use distributed array in julia, but I am facing some error while using its library
ERROR: ArgumentError: DistributedArrays not found in path
I am using ubuntu 14.04 and julia version 0.4.2
Please help me to resolve this problem

DArrays have been removed from Julia Base library in v0.4
Pkg.add("DistributedArrays") # => it must be added
so it is now necessary to import the DistributedArrays package on all spawned processes.
#everywhere using DistributedArrays

Related

Fail to importing R libraries to Julia 1.4 using RCall

Imported R libraries to julia using RCall (#rlibrary) cause "Segmentation Error" during run them (not at start the application). I am using latest version of both R (3.6.3) and Julia (1.4.1). Is there any solution?
Problem persists for any library, even R base.

How to load the PyPlot package in Julia-1.2.0-1

I cannot load the PyPlot package using Julia 1.2.0-1 running on MacOS 10.15.1.
After starting Julia I type a ] to get to "Pkg". I then type
add PyPlot
and get the following messages:
Updating registry at ~/.juliapro/JuliaPro_v1.2.01/registries/JuliaPro
Updating git-repo https://pkg.juliacomputing.com//registry/JuliaPro
ERROR: GitError(Code:EMERGECONFLICT, Class:Checkout, 1332 conflicts prevent checkout)
followed by a lengthy stacktrace. I have never seen this with previous Julia and MacOS versions; they just loaded the package.
Deleting the registry and restarting Julia did the trick! Thanks to all >who replied!

Using R package RJulia

I would like to install the R Package JuliaCall, to use Julia from R. I have installed Julia via snap and installed the JuliaCall R package form the Cran.
I received the following error when trying to use the setup function of JuliaCall.
library(JuliaCall)
julia <- julia_setup()
Julia version 1.0.4 at location /snap/julia/13/bin will be used.
Error in dyn.load(.julia$dll_file) :
unable to load shared object '/snap/julia/13/bin/../lib/libjulia.so.1':
/snap/julia/13/bin/../lib/libjulia.so.1: wrong ELF class: ELFCLASS32
Show Traceback
Rerun with Debug
Error in juliacall_initialize(.julia$dll_file) :
/snap/julia/13/bin/../lib/libjulia.so.1 - /snap/julia/13/bin/../lib/libjulia.so.1: wrong ELF class: ELFCLASS32
Julia is installed:
XRJulia::findJulia()
[1] "/snap/bin/julia"
I have tried some suggestions found in
https://github.com/Non-Contradiction/JuliaCall/issues/72
and even report my problems, but I'm not sure if this is an issue to open on Github or a problem with my installation.
The same error occurs
My system specifications are:
Ubuntu 18.04,
Rstudio 1.1.456,
R 3.5.1,
Julia installed via snap
Thanks for any help you could provide
Actually, the developer of JuliaCall answered my question.
I have installed Julia using snap without noticing that a 32bits version was used. Installing Julia from the .tar.gz archive and choosing the correct 64 bits version solve this problem.
Many Thanks to #Non-Contradiction.

Julia 1.0 Pkg.add() not working as expected

I am having trouble adding some packages in Julia
This is one example, although I am finding many others:
julia> Pkg.add("QuartzImageIO.jl")
ERROR: The following package names could not be resolved:
* QuartzImageIO.jl (not found in project, manifest or registry)
Please specify by known `name=uuid`.
I believe this should work according to the docs
https://github.com/JuliaIO/QuartzImageIO.jl
and Plotly that required it
LoadError: ArgumentError: Package QuartzImageIO not found in current path:
- Run `import Pkg; Pkg.add("QuartzImageIO")` to install the
QuartzImageIO package.
I am new to Julia, am I doing something wrong?
Thanks
Peter
The .jl suffix is not part of the package name (although packages are often referenced with it included) . Try
using Pkg
Pkg.add("QuartzImageIO")
If you install JuliaPro then the packages that you can install are limited by what's been curated for JuliaPro. Installed the non-pro vanilla version and try again.

Is there a way to use a package designed for Rstudio in R CLI?

Someone wrote a package (we'll call it 'Thing') that relies heavily on Rstudio to work, including requiring the rstudioapi library. It has an authentication routine that
relies on the rstudioapi::askForPassword("Enter your pw") function.
If I run the setup routine, it throws this sort of error:
> setup_thing()
Thanks for downloading Thing, the custom R package for things.
Loading required package: rstudioapi
Error: RStudio not running
I am trying to avoid re-writing the entire library; Is there a way to install and set up the package in RStudio, but use its configured instance from R CLI?
I think the answer is unfortunately no. But there might be a work around. Have you investigated cronR? https://cran.r-project.org/web/packages/cronR/README.html
You could potentially schedule the jobs within Rstudio itself.

Resources