Giter Site home page Giter Site logo

Comments (7)

fischuu avatar fischuu commented on August 13, 2024

Hi Laura,

sure, apparently you are trying to install hoardeR with an older R version, which results in some problems. However, unfortunately there are currently quite many dependencies in the package so that the installation might cause some problems anyway.

But what you can do, if you only aim for the subPhased() function, you can just source this function here from the github repository:

source("https://raw.githubusercontent.com/fischuu/hoardeR/master/R/subPhased.R")

there shouldn't be any further dependencies. After you have sourced that function it will be available for this session. If you need the fixed version of the function I would recommend to download the file instead, store it locally and then source it from your HDD.

Please let me know if this solves your issue or if you need any further help with it.

from hoarder.

laurabuggiotti avatar laurabuggiotti commented on August 13, 2024

from hoarder.

fischuu avatar fischuu commented on August 13, 2024

I just checked the code (I wrote it quite a while ago...), and I noticed that some of the codes are only work under Linux OS, so I would actually improve the function. Do you run it on Windows? I could prepare an OS safe version of it, but cannot do it today anymore (maybe in the evening, lets see).

I assume the issue is that I used back then a system command to determine the number of rows in the file, which is of course not the best way to do and should be fixed. Nowadays I would use the data.table package instead, I'll try to rewrite this part.

But if you know the number of lines inside your phased file, I could send you a quick fix...

Best wishes
Daniel

from hoarder.

laurabuggiotti avatar laurabuggiotti commented on August 13, 2024

from hoarder.

fischuu avatar fischuu commented on August 13, 2024

I just changed the part that determines the number of lines, maybe that helps to run the function, though it might be slow. I really should change that function to use the data table package, I try to do that asap, but currently I do not have test data with me, so it might take until Monday...

In the meanwhile, you could try to source this fix here:

source("https://raw.githubusercontent.com/fischuu/hoardeR/master/R/subPhased_uglyFix.R")

from hoarder.

laurabuggiotti avatar laurabuggiotti commented on August 13, 2024

from hoarder.

fischuu avatar fischuu commented on August 13, 2024

Okay, perfect! Hopefully it will serve you well then!

but for future reference I should really change it to get it OS independent...

Best wishes,
Daniel

from hoarder.

Related Issues (6)

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.