Comments (18)
You are right @amoeba that is how its currently written, but I agree with you and @annakrystalli it would make more sense to have the function do all that for the user. I shall get that done over the weekend!
from dataspice.
might be good to coordinate with @amoeba re: #41
from dataspice.
I just ran through these and they look great @aurielfournier! I'm so glad you sat down and joined us on day two.
I had an idea while I was using them I thought I'd run by you. Is this the right workflow to, for example, edit the access metadata?
access_df <- read.csv("data/metadata/access.csv", stringsAsFactors = FALSE)
editAccess(access_df)
What do you think about defaulting to doing the first line for the user by assuming each of the CSVs is at the conventional path (./data/metadata/{type}.csv
) so the user only has to do this to get their data spiced?
create_spice()
editBiblio()
editAccess()
editAttributes()
editCreators()
write_spice()
build_site()
Also, would it be alright if I renamed these functions to use snake_case instead of camelCase just for consistency's sake?
from dataspice.
Was just about to add the suggestion above by @amoeba.
My suggestion would be for the function to take an argument for the path to the file that is to be edited but for the argument to default to here::here("data", "metadata", {type}.csv)
. The function would then read and write the file back out using that path.
from dataspice.
#27 we now have a shiny app that allows the user to fill in some of the cells and write out a file.
from dataspice.
But we need to make it so that it writes out a .csv
Right now it does ASCII and RDS.
from dataspice.
for bounding box/spatial coverage, mapedit might be useful https://www.r-spatial.org/r/2017/06/09/mapedit_0-2-0.html to create a new spatial extent, or display a bounding box based on min/max coordinates in the dataset
from dataspice.
@khondula would that be for a shiny app for users to define their bounding box? Instead of entering the numeric values?
from dataspice.
It now outputs a .csv file of the populated attributes.csv metadata file.
Next up is the biblio, access and creators.csv apps.
this could be done with a tabbed shiny app or four separate apps.
from dataspice.
#36 #38 #35 creates the new shiny apps for creator, biblio, access shiny apps
from dataspice.
Next step would be bringing all of these together into one app.
from dataspice.
I think these functions might need to be added to the namespace?
would that be for a shiny app for users to define their bounding box?
@aurielfournier yes, maybe showing them what the bounds are if they have coordinates entered (so they can confirm no silly lat/lon errors), or if they don't know coordinates they can draw a box like on http://geojson.io/
from dataspice.
Gotcha! I can work on the bounding box as well.
And yes, you are right, I forgot to add them. Will work on it shortly
from dataspice.
Sounds good @aurielfournier @khondula!
from dataspice.
Most excellent!
from dataspice.
🙌
BTW, we've already got readr
as a dependency and have been using readr::read_csv()
readr::write_csv()
in other functions so far. Not necessary to use these but might be more consistent if we do use throughout?
from dataspice.
Good catch! I'm fine with using readr everywhere.
from dataspice.
This is "in" as of #60. Thanks @aurielfournier and @annakrystalli. We might find things to improve now that all of this is in but I think we can use new issues for those.
from dataspice.
Related Issues (20)
- Feature request: Add file to attributes
- Migrate from spread to pivot_wider
- Address width and scrolling in Shiny apps HOT 1
- Make use of rhandsontable's read only features
- Add ropensci onboarding reviewers in package acknowledgement section
- Complete final tasks from onboarding
- build_site() generates a docs folder even if user has set custom out_path HOT 4
- Using dataspice for multiple datasets
- Display citation and author fields in the html page
- Bug: Cannot use the biblio.csv metadata file due to keywords issue HOT 3
- Document eml_spice functions
- Do an editing pass of shiny apps
- Create 1.0 release HOT 1
- Fix CI HOT 1
- Fix CRAN issues HOT 2
- Go through ropensci onboarding
- Switch default branch to main HOT 1
- Add Test and covr workflows HOT 1
- Session_Info generator HOT 4
- Adding a DOI
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 dataspice.