Code Monkey home page Code Monkey logo

Comments (6)

alexembrey avatar alexembrey commented on September 10, 2024 2

You are right - an explicit namespace should not be required. I've created a JIRA bug about this. Hopefully it will get fixed for the next release of RSyncroSim.

from rsyncrosim.

alexembrey avatar alexembrey commented on September 10, 2024 1

You can't overwrite project scoped data using append=F. (There's a small note in the help for saveDatasheet() about how it can have different behavior depending on the scope, but it's not made very clear what the differences are...)

The way to do this is by using the "delete()" function. For example:
delete(proj, datasheet = "stsim_Stratum")

from rsyncrosim.

josie-hughes avatar josie-hughes commented on September 10, 2024 1

Thanks @VLucet and @alexembrey .
I tried deleting - it fails when datasheet="Stratum", and succeeds when datasheet="stsim_Stratum". Not consistent with other functions that no longer require stsim prefix.
Here is a reproducible example.
For others it would be helpful to include a warning that append argument is ignored for project scope datasheets, along with suggestion to use delete.
############
library(rsyncrosim)

cSession = session(printCmd=F)
testLib = ssimLibrary("test",session=cSession)
testProj = project(testLib,"testProj")

cSheet ="Stratum"
saveDatasheet(testProj,data.frame(Name="LS",ID=1),name=cSheet)
delete(ssimLibrary(testProj),project=1,datasheet=cSheet,force=T) #This fails.

delete(ssimLibrary(testProj),project=1,datasheet="stsim_Stratum",force=T) #This works

from rsyncrosim.

VLucet avatar VLucet commented on September 10, 2024

Hi @josie-hughes, are you using the CRAN version? I have never used this feature before so it's possible that because I am not familiar with it, I have introduced a bug in the code during the submission process to CRAN. Maybe @alexembrey could be of better help on this. I have looked at the git history of saveDatasheet and I cannot pinpoint where a breaking change would have happened. A reproducible example would help me.

from rsyncrosim.

josie-hughes avatar josie-hughes commented on September 10, 2024

In the meantime I will go ahead and use my new namespace knowledge. Thx.

from rsyncrosim.

Related Issues (3)

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.