Spaces:
Running
Running
T Le
commited on
Commit
·
ab982a1
1
Parent(s):
835c53e
Changed rtest
Browse files- pages/Rtest.py +2 -2
- pages/testr.R +1 -7
pages/Rtest.py
CHANGED
@@ -53,8 +53,8 @@ if st.button("Test"):
|
|
53 |
process2 = subprocess.Popen(["Rscript", "pages/testr.R"], stdout=subprocess.PIPE, stderr=subprocess.PIPE, text=True)
|
54 |
result2 = process2.communicate()
|
55 |
st.write(result2)
|
56 |
-
with st.container(border=True):
|
57 |
-
st.image('plot.png')
|
58 |
|
59 |
|
60 |
|
|
|
53 |
process2 = subprocess.Popen(["Rscript", "pages/testr.R"], stdout=subprocess.PIPE, stderr=subprocess.PIPE, text=True)
|
54 |
result2 = process2.communicate()
|
55 |
st.write(result2)
|
56 |
+
#with st.container(border=True):
|
57 |
+
#st.image('plot.png')
|
58 |
|
59 |
|
60 |
|
pages/testr.R
CHANGED
@@ -1,7 +1 @@
|
|
1 |
-
|
2 |
-
|
3 |
-
ggplot(mtcars,aes(mpg,wt))+
|
4 |
-
geom_point()
|
5 |
-
|
6 |
-
ggsave('plot.png')
|
7 |
-
|
|
|
1 |
+
print('loaded script')
|
|
|
|
|
|
|
|
|
|
|
|