Giter Site home page Giter Site logo

valvaletl / smmt Goto Github PK

View Code? Open in Web Editor NEW
4.0 2.0 1.0 1.64 MB

R tool to get municipality mapping table between two time points for Swiss municipalities

Home Page: https://cran.r-project.org/package=SMMT

R 50.06% HTML 49.94%
switzerland municipalities data-management r cran statistics

smmt's People

Contributors

valvaletl avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Forkers

sondalex

smmt's Issues

Issue with municipality inventory import

Dear Valentin,
First of all: thanks for developing such a useful package for the scientific community!

I just wanted to use it for the first time and I'm having an issue with the .xml data import from the municipality inventory. When I run the following code (following the example on the SMMT manual page: https://smmt.valentinknechtl.ch/articles/manual.html#setup), I get an error message:

library(SMMT)
path_inventory_xml <- download_municipality_inventory(path = getwd())

The error message is "Error in if (!copy_success) stop(paste0("XML File already exists at target (", :
the condition has length > 1"

Despite the error message, an .xml-file appears in the working directory, and I can get into R with the alternative option that is indicated on the webpage, in my case:

file_path_inventory_xml <- "path/to/eCH0071_230101.xml"

However, when I then want to generate the mutations_object through the following line of code
mutations_object <- import_CH_municipality_inventory(file_path = file_path_inventory_xml)
I get another error message: "Error: XML content does not seem to be XML: ''

I'm a bit lost concerning what I'm doing wrong or what the issue is here and help would be much appreciated.
I'm using R version 4.2.2 ((2022-10-31 ucrt) -- "Innocent and Trusting") on a Windows 64-bit machine if that is of any help.
Thanks a lot,
Michael

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.