Git Product home page Git Product logo

Comments (4)

variani avatar variani commented on July 17, 2024

Hi,

The error message (its first lines) suggests that you don't have SOLAR installed on your machine, or the "solar" command is not found.

You can check the section on how to install SOLAR (in the same vignette).

Andrey

from solarius.

ngwali avatar ngwali commented on July 17, 2024

Hello;

Thank you for your early response. Sir I did Installed the SOLAR software from Github.
Before Calling the solar library; I had already installed solarius
from github upfront as specified by the vignette.

Now to proof that I did, I uninstalled solarius again
and installed it again, then call the solar function
e.g
#Installing solar again from github

library(devtools)
install_github("ugcd/solarius")
Downloading GitHub repo ugcd/solarius@master
✔ checking for file ‘/private/var/folders/31/7h6056hj67g1kjfrcgv2w5j00000gn/T/RtmpYQasAQ/remotes948264cf184/ugcd-solarius-301361a/DESCRIPTION’ ...
─ preparing ‘solarius’: (2.3s)
✔ checking DESCRIPTION meta-information ...
─ checking for LF line-endings in source and make files and shell scripts
─ checking for empty or unneeded directories
Removed empty directory ‘solarius/docs/figures’
Removed empty directory ‘solarius/docs’
─ looking to see if a ‘data/datalist’ file should be added
─ building ‘solarius_0.3.2.tar.gz’

  • installing source package ‘solarius’ ...
    ** R
    ** data
    ** inst
    ** byte-compile and prepare package for lazy loading
    ** help
    No man pages found in package ‘solarius’
    *** installing help indices
    ** building package indices
    ** testing if installed package can be loaded
  • DONE (solarius)

Now Running the Example in Vignette

####univariate polygenic model

load data set

library(solarius)
data(dat30)
mod1 <- solarPolygenic(trait1 ~ 1, dat30)
sh: solar: command not found
Error in system("solar", input = cmd, intern = result, ignore.stdout = ignore.stdout, :
error in running command
Error in df2solar(data, dir) :
file.exists(file.path(dir, "phi2.gz")) is not TRUE

bivariate polygenic model

mod2 <- solarPolygenic(trait1 + trait2 ~ 1, dat30, polygenic.options = '-testrhoe -testrhog')
sh: solar: command not found
Error in system("solar", input = cmd, intern = result, ignore.stdout = ignore.stdout, :
error in running command
Error in df2solar(data, dir) :
file.exists(file.path(dir, "phi2.gz")) is not TRUE

Thank you

from solarius.

variani avatar variani commented on July 17, 2024

Does the command solar in the terminal work for you?

In our package we just call solar with the system function, as one would call any other program from terminal. An example code in R:

system("pwd")
system("solar")

Also note, that our R package is not supported in Windows.

from solarius.

variani avatar variani commented on July 17, 2024

Now I see that you run code in the Mac computer. It seems you need to add the solar to your path and assign the alias "solar".

To check it works, open terminal and type "solar".

from solarius.

Related Issues (5)

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.