Comments (6)
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.
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.
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.
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.
In the meantime I will go ahead and use my new namespace knowledge. Thx.
from rsyncrosim.
Related Issues (3)
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from rsyncrosim.