Student Achievement Management Background second task: Preliminary modeling, building a simple website

Source: Internet
Author: User

Person in charge: Boymatt ru

PARTNER: Honourable

Contracted staff: Xiang Yurong

The background of student performance management, looks like a simple project, but for our future development is very important, the construction of a management background there are many ways, here we mainly use Rstudio, in the following article, will give details of our team to complete the process of the project and encountered problems, welcome everyone to learn from, in addition, Students should actively participate in the discussion.

Project steps: 1. Be familiar with and install the Rstudio, and configure the R internal environment.

2. establish the location where the files are stored and ensure that the documents are in good working order.

3. Build a simple website that is divided into servers. R Port with UI.R port.

4. After the site is set up, insert some controls that are used by the front end.

5. After the layout of the page.

6. Package and transfer of parameter sets.

7. Manage settings for permissions.

8. Create the database and read the data in.

Code:

wd<-"C:/rrr"

Dir.create (WD)

SETWD (WD)

Library (Shiny)

Install.packages ("shiny")

Library (Shiny)

RunApp ("Myzhan") Build a website

install.packages ("Rsqlite") Download a Rsqlite Package

Library (rsqlite) Read Package

Guandao<-dbconnect (Rsqlite (), "c:/rrr/mydata.db")

Dblisttables (Guandao)

Biao <-data.frame (name=c ("Zhang", "Wang", "Li"), create a table

gender=c ("Nan", "NV", "NV"),

home=c ("Wuhai", "Baotou", "Jining"),

stringsasfactors= F)

Dbwritetable (Guandao, "Myone", Biao)

Dblisttables (Guandao)

Dblistfields (Guandao, "Myone")

Dbgetquery (Guandao,

"SELECT * FROM Myone"

)->get.from.mydata

View (Get.form.mydata)

Student Achievement Management Background second task: Preliminary modeling, building a simple website

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.